[issue42883] __init__ function may incur an incorrect behavior if passing a list as a parameter and set its default value as empty
Serhiy Storchaka
report at bugs.python.org
Sun Jan 10 09:58:42 EST 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42883>
_______________________________________
More information about the Python-bugs-list
mailing list