[issue40911] Unexpected behaviour for += assignment to list inside tuple

Adam Cmiel report at bugs.python.org
Mon Jun 8 11:44:58 EDT 2020


Adam Cmiel <acmiel1 at gmail.com> added the comment:

Got it, I didn't realize that the last step of augmented assignment is (in this case) assigning the result of __iadd__ back to the tuple.

Thanks for the explanations!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40911>
_______________________________________


More information about the Python-bugs-list mailing list