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

2014年2月17日 06:48:06 -0800

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.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to