[issue3755] Lists propagate through new instances of class if using append

2008-09-01 Thread Benjamin Peterson
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 ->

[issue3755] Lists propagate through new instances of class if using append

2008-09-01 Thread supernova_hq
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 __

[issue3755] Lists propagate through new instances of class if using append

2008-09-01 Thread supernova_hq
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