[Python-Dev] python 3 niggle: None < 1 raises TypeError

Jon Ribbens jon+python-dev at unequivocal.co.uk
Mon Feb 17 15:38:11 CET 2014

On Mon, Feb 17, 2014 at 12:43:25PM +0100, M.-A. Lemburg wrote:
> This doesn't only apply to numeric comparisons. In Python 2 you
> can compare None with any kind of object and it always sorts first,

No you can't. See http://bugs.python.org/issue1673405 .

According to Tim Peters, the "None is less than everything" rule
never existed.

More information about the Python-Dev mailing list