STINNER Victor added the comment:

> TypeError: unorderable types: int() < NoneType()

The error message looks good to me: NoneType is the type of the None singleton:

>>> type(None)
<class 'NoneType'>
>>> x=type(None)()
>>> x is None
True

Do you propose to use the message "TypeError: unorderable types: int() < None"? 
This message looks wrong to me, None is not a type.

The strange thing is the trailing parenthesis!? Why not "int < NoneType"?

----------
nosy: +haypo

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

Reply via email to