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

Ronald Oussoren report at bugs.python.org
Tue May 21 08:21:09 CEST 2013


Ronald Oussoren added the comment:

I agree that there's probably no good solution here.

Catching TypeError would require emitting a lot more byte code, and would change the semantics of augmented assignment, in particular it wouldn't really be an assignment statement anymore (and hides some flow control).

----------

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


More information about the Python-bugs-list mailing list