[issue3755] Lists propagate through new instances of class if using append
Benjamin Peterson
report at bugs.python.org
Tue Sep 2 03:57:35 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
This is the expected behavior. By declaring variables outside class
methods, they become class variables and are associated with the class
instead of the instance.
----------
nosy: +benjamin.peterson
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3755>
_______________________________________
More information about the Python-bugs-list
mailing list