This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mark.Shannon, ezio.melotti, serhiy.storchaka, vstinner
Date 2015-09-22.10:16:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442917008.26.0.42217112438.issue25210@psf.upfronthosting.co.za>
In-reply-to
Content
> 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"?
History
Date User Action Args
2015-09-22 10:16:48vstinnersetrecipients: + vstinner, ezio.melotti, Mark.Shannon, serhiy.storchaka
2015-09-22 10:16:48vstinnersetmessageid: <1442917008.26.0.42217112438.issue25210@psf.upfronthosting.co.za>
2015-09-22 10:16:48vstinnerlinkissue25210 messages
2015-09-22 10:16:48vstinnercreate