[issue12233] Lists in class objects not independent
Raymond Hettinger
report at bugs.python.org
Wed Jun 1 04:20:58 CEST 2011
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Sorry, that is correct behavior for class variables.
To get your intended effect (independent lists) do the list instantiation inside the __init__ method.
----------
nosy: +rhettinger
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12233>
_______________________________________
More information about the Python-bugs-list
mailing list