Christian Heimes added the comment:
Descriptors like properties are bound to the class and not to the
instance. The behavior is consistent with class attributes and methods:
>>> class Foo:
... a = 1
... bar = property(lambda self: 'baz')
...
>>> dict(Foo.__dict__)
{'a': 1, '__module__': '__main__', 'bar': <property object at
0xb7d2b4b4>, '__doc__': None}
>>> Foo().__dict__
{}
----------
nosy: +tiran
resolution: -> wont fix
status: open -> closed
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2040>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com