Why is None <= 0

D'Arcy J.M. Cain darcy at druid.net
Fri Apr 25 14:50:57 EDT 2008


On Fri, 25 Apr 2008 20:27:15 +0200
Gregor Horvath <gh at gregor-horvath.com> wrote:
>  >>> None <= 0
> True
> 
> Why?

Why not?

> Is there a logical reason?

Everything in Python can compare to everything else.  It is up to the
programmer to make sure that they are comparing reasonable things.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list