[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

Antoine Pitrou report at bugs.python.org
Sat Nov 1 00:06:14 CET 2014


Antoine Pitrou added the comment:

Yes, it's true that the message is better. If we don't want to change behaviour, we should simply catch the AttributeError and return NotImplemented from there.

----------

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


More information about the Python-bugs-list mailing list