[issue8762] default value in constructor not unique across objects
R. David Murray
report at bugs.python.org
Wed May 19 04:05:23 CEST 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
This is not a bug, it's how Python works. Default values are computed at function definition time, so there's only one list across all the function invocations.
----------
nosy: +r.david.murray
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8762>
_______________________________________
More information about the Python-bugs-list
mailing list