[issue25210] Special-case NoneType() in do_richcompare()
Serhiy Storchaka
report at bugs.python.org
Thu Sep 24 17:15:59 CEST 2015
Serhiy Storchaka added the comment:
It makes the error message just non-relevant (or misleading) to the error.
It refers to int < NoneType, but actually the exception is raised when you
compare an int instance with a NoneType instance, not two types theirself.
Comparing *any two types* raises an exception, but comparing instances of two
types can return a result.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25210>
_______________________________________
More information about the Python-bugs-list
mailing list