[issue23620] cross-type comparison is different in python minor versions

R. David Murray report at bugs.python.org
Mon Mar 9 14:14:03 CET 2015


R. David Murray added the comment:

In Python2, all objects were comparable (except DateTime stuff...and maybe there was one other exception, I forget).  We did indeed decide this was a bug and fixed it in Python3.  Now objects of different types are comparable if only if at least one of them supports being compared with the other.  Python does, however, know how to compare Float and Decimal correctly, since Python 3.2 (see the What's New document for Python 3.2).

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list