[issue43206] Optional parameter got passed even when not in the call
Eric V. Smith
report at bugs.python.org
Fri Feb 12 09:33:50 EST 2021
Eric V. Smith <eric at trueblade.com> added the comment:
It's hard to tell because you didn't show the whole program, but this looks like a mutable default argument problem. Basically you're changing the default value in a different call to Row().
https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43206>
_______________________________________
More information about the Python-bugs-list
mailing list