[issue25683] __context__ for yields inside except clause

Emanuel Barry report at bugs.python.org
Wed Nov 25 08:38:49 EST 2015


Emanuel Barry added the comment:

This is due to the fact that Python 3 added the ability to define only __eq__ and get a free __ne__ defined. If my memory serves me right, functools.total_ordering was added in 3.2 and then backported to 2.x - where the relationship with __eq__ and __ne__ is not present. total_ordering doesn't do anything to touch __ne__ as it expects Python itself to do so (which it doesn't in 2.x).

----------
nosy: +ebarry

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


More information about the Python-bugs-list mailing list