New submission from Jag Ginsberg:
If I have a class:
class Foo(object):
bar = property(lambda self: 'baz') # ignore the value's trivial nature
and then run:
>>> foo_obj = Foo()
>>> foo_obj.__dict__
... I would expect to see:
{'bar': 'baz'}
... and not:
{}
This would seem consistent with what a property is supposed to
masquerade as. Do you disagree?
-jag
----------
components: Interpreter Core
messages: 62159
nosy: jag
severity: minor
status: open
title: Class instance attributes that are property() should appear in __dict__
type: behavior
__________________________________
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