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

Lennart Regebro regebro at gmail.com
Fri Feb 14 16:41:14 CET 2014


What I think is the biggest nitpick here is that you can't make a NULL
object so that

    NULL is None

evaluates as True. If you could, you could then easily make this NULL
object evaluate as less than everything except itself and None, and
use that consistently. But since this NULL is not None, that breaks
any backwards compatibility if your SQL library mapped NULL to None in
earlier versions.


More information about the Python-Dev mailing list