Re: Odd behavior with staticmethods

2006-07-04 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: otplease stop top-posting, it's getting very annoying/ot 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

Re: Odd behavior with staticmethods

2006-07-02 Thread [EMAIL PROTECTED]
THANK YOU! Now I can actually worry about the advantages/disadvantages! -- http://mail.python.org/mailman/listinfo/python-list

Odd behavior with staticmethods

2006-07-01 Thread [EMAIL PROTECTED]
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 st =

Re: Odd behavior with staticmethods

2006-07-01 Thread Scott David Daniels
[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 - wrapping orig() in

Re: Odd behavior with staticmethods

2006-07-01 Thread [EMAIL PROTECTED]
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

Re: Odd behavior with staticmethods

2006-07-01 Thread Diez B. Roggisch
[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 these

Re: Odd behavior with staticmethods

2006-07-01 Thread Scott David Daniels
[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 these