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

Chris Angelico rosuav at gmail.com
Fri Feb 14 22:41:21 CET 2014


On Sat, Feb 15, 2014 at 4:14 AM, Chris Barker <chris.barker at noaa.gov> wrote:
> (though it could get a bit tricky -- what would AlwaysGreater > float('inf")
> evaluate to?
>

It'd be true. AlwaysGreater is greater than infinity. It is greater
than float("nan"). It is greater than the entire concept of floating
point. It is greater than everything imaginable... except for a nice
MLT - a mutton, lettuce, and tomato sandwich... oh.

Where things get tricky is when you compare two AlwaysGreater objects.
Or even compare one against itself. It has to be greater.

Great.

ChrisA


More information about the Python-Dev mailing list