Mark Dickinson <dicki...@gmail.com> added the comment:

Thanks for the report. This is a long-standing and known behaviour. It's been 
discussed a good few times before, and (quite apart from potential problems 
with backwards compatibility) no-one has yet come up with convincing 
alternative behaviours.

See 
https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works

Marking as a duplicate of https://bugs.python.org/issue40911

----------
nosy: +mark.dickinson
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Unexpected behaviour for += assignment to list inside tuple

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to