Benjamin Peterson <[EMAIL PROTECTED]> 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 ->
supernova_hq <[EMAIL PROTECTED]> added the comment:
I have located a bug where every instance of an identical class (or a
class that extends it) will use the same copy of any list element
created before __init__.
The only way I have found to fix this is to explicitly empty the list
inside the __
New submission from supernova_hq <[EMAIL PROTECTED]>:
I have located a bug where every instance of an identical class (or a
class that extends it) will use the same copy of any list element
created before __init__.
The only way I have found to fix this is to explicitly empty the list
inside the