Josh Rosenberg added the comment:

It's not exactly what was asked for, but it's actually better (in that the 
__ne__ default implementation handles NotImplemented correctly). Per the docs 
at https://docs.python.org/3/reference/datamodel.html#object.__eq__ :

"By default, __ne__() delegates to __eq__() and inverts the result unless it is 
NotImplemented."

This feature was never backported to 2.7, but it's existed in one form or 
another for the entire 3.x line.

----------
nosy: +josh.r

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

Reply via email to