[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

Benjamin Peterson report at bugs.python.org
Sat Dec 28 21:08:52 CET 2013


Benjamin Peterson added the comment:

__ne__ is not "bound" to __eq__. The comparison code simply falls back onto __eq__ if __ne__ is not defined.

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list