New submission from neoone: Initialization of member variables with lists leads to strange behavior.
The list object is common to each instance of that class. File attached results in: [] [] <__main__.Proof instance at 0x00BA7120> ['STICKYARRAY'] [] <__main__.Proof instance at 0x00BA7148> So the initialized list a is the same in both instances. Behaviour has been tested on 2.3 and 2.5 ---------- components: Interpreter Core files: test.py messages: 57500 nosy: neoone severity: normal status: open title: Magic class member variable initialization with lists type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file8745/test.py __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1443> __________________________________
test.py
Description: Binary data
_______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com