[EMAIL PROTECTED] wrote:
please stop top-posting, it's getting very annoying
> ya know, I've searched for these "new classes" at least five times.
Then go and buy yourself a pair of glasses. It's one of the entrie in
the "documentation" menu of python.org.
--
bruno desthuilliers
python -c "pri
THANK YOU!
Now I can actually worry about the advantages/disadvantages!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> ya know, I've searched for these "new classes" at least five times.
> I've heard all the wonderful things about how they make your life into
> a piece of chocolate with rainbows sprinkled in it. Never once have I
> found a site that explains what syntax to use to make th
[EMAIL PROTECTED] schrieb:
> ya know, I've searched for these "new classes" at least five times.
> I've heard all the wonderful things about how they make your life into
> a piece of chocolate with rainbows sprinkled in it. Never once have I
> found a site that explains what syntax to use to make
ya know, I've searched for these "new classes" at least five times.
I've heard all the wonderful things about how they make your life into
a piece of chocolate with rainbows sprinkled in it. Never once have I
found a site that explains what syntax to use to make these new
classes.
Anyone have a U
[EMAIL PROTECTED] wrote:
> I'm getting rather inconsistent behavior with staticmethod.
Not really.
class A:
> def orig():
> print "hi"
> st = staticmethod(orig)
> st2 = st
> wrapped = [ orig ]
> wrapped2 = [ st ]
...
A.wrapped[0]() # ODD - wra
I'm getting rather inconsistent behavior with staticmethod.
@staticmethod has the same problems, but I'm demonstrating it with
staticmethod() because it shows things more clearly
---
>>> class A:
def orig():
print "hi"