[Python-Dev] 2.2a1: classmethod() and class attributes (original) (raw)
Aahz Maruch aahz@rahul.net
Mon, 13 Aug 2001 19:31:11 -0700 (PDT)
- Previous message: [Python-Dev] yield without future statement?
- Next message: [Python-Dev] 2.2a1: classmethod() and class attributes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
BTW, please read the introduction at http://www.python.org/2.2/descrintro.html
Okay, I did that.
It's not particularly convenient for me to try out 2.2a1, so I'm just going by what's written. One little hole that I don't see an answer to is what happens when you do this:
class C(object): x = 0 def foo(cls): cls.x += 1 foo = classmethod(foo)
C.foo()
--- Aahz (@pobox.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/ Androgynous poly kinky vanilla queer het Pythonista
I don't really mind a person having the last whine, but I do mind someone else having the last self-righteous whine.
- Previous message: [Python-Dev] yield without future statement?
- Next message: [Python-Dev] 2.2a1: classmethod() and class attributes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]