[issue12766] strange interaction between __slots__ and class-level attributes
Benjamin Peterson
report at bugs.python.org
Wed Aug 17 01:16:48 CEST 2011
Benjamin Peterson <benjamin at python.org> added the comment:
So would you prefer to see
>>> x.foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: foo
>>> x.foo = 5
>>> x.foo
5
?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12766>
_______________________________________
More information about the Python-bugs-list
mailing list