[issue17973] '+=' on a list inside tuple both succeeds and raises an exception

Andy Chugunov report at bugs.python.org
Fri May 17 19:07:11 CEST 2013


Andy Chugunov added the comment:

Thank you for the clarification! The exception is appropriate as tuples have to stay immutable. Got it.

Could you please also explain a bit about the append() call? Should it in theory raise an exception as well or is such clean behavior intended?

----------

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


More information about the Python-bugs-list mailing list