Antoine Pitrou added the comment:

You misread that paragraph:

""" For instance, to execute the statement x += y, where x is an instance of a 
class that has an __iadd__() method, x.__iadd__(y) is called."""

This is the present case, and the case of most mutable containers.

"""If x is an instance of a class that does not define a __iadd__() method, 
x.__add__(y) and y.__radd__(x) are considered, as with the evaluation of x + 
y."""

This is not the present case.

----------

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

Reply via email to