This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2007年11月14日 19:10 by neoone, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test.py | neoone, 2007年11月14日 19:10 | |||
| Messages (2) | |||
|---|---|---|---|
| msg57500 - (view) | Author: neoone (neoone) | Date: 2007年11月14日 19:10 | |
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 |
|||
| msg57502 - (view) | Author: Guido van Rossum (gvanrossum) * (Python committer) | Date: 2007年11月14日 19:19 | |
Go ask on c.l.py why this is not a bug. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:28 | admin | set | github: 45784 |
| 2007年11月14日 19:19:50 | gvanrossum | set | status: open -> closed resolution: not a bug messages: + msg57502 nosy: + gvanrossum |
| 2007年11月14日 19:10:35 | neoone | create | |