[issue7254] Class members not properly initialized if declared outside of function

2009-11-02 Thread R. David Murray
R. David Murray added the comment: This is the way python works. For help on using python please post to python-list or python-tutor. -- nosy: +r.david.murray priority: -> low resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue7254] Class members not properly initialized if declared outside of function

2009-11-02 Thread Vlad
New submission from Vlad : If a class member is declared outside of a function, it's creation is _not_ repeated with every new instance of the class. Instead, the same member is created during the first instance and then shared by all the subsequent instances of that class. This is wrong, because