Martin Panter added the comment:

The “s += t” operation assigns the result back to s. So it could involve an 
extra __setattr__()/__setitem__() call, or an exception trying to modify a 
tuple item, etc. The extend() and slice assignment versions don’t have this 
extra stage.

----------

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

Reply via email to