[issue4098] surprised by default list parameter

Ulrich Eckhardt report at bugs.python.org
Fri Oct 10 12:05:58 CEST 2008


Ulrich Eckhardt <eckhardt at satorlaser.com> added the comment:

http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm

The same recently cropped up on the users mailinglist under the topic
"default value in __init__".

----------
nosy: +eckhardt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4098>
_______________________________________


More information about the Python-bugs-list mailing list