Ethan Furman added the comment:
My understanding was that if a different patch will be needed, it is not the
same issue. Is that not correct?
Here's the test:
def test_iadd(self):
...
self.assertRaises(TypeError, u.__iadd__, None)
It would still pass, as returning NotImpl
Raymond Hettinger added the comment:
Please don't replicate existing issues.
Also, this behavior for lists is long-standing, tested, and designed by Guido.
More than a little code relies on this behavior.
--
assignee: -> rhettinger
nosy: +rhettinger
resolution: -> not a bug
status:
New submission from Ethan Furman:
--> s = []
--> s += 1
Traceback (most recent call last):
File "", line 1, in
TypeError: 'int' object is not iterable
For comparison, when NotImplemented is appropriately returned the message looks
like this:
--> s -= 1
Traceback (most recent call last):
F