On 2008-04-25, Gregor Horvath <[EMAIL PROTECTED]> wrote:
> Hi,
>
> >>> None <= 0
> True
>
> Why?
Comparing objects of differing types produces an undefined
result. Next time you do it, it might return False. (Well,
it's not really going to, but it's allowed to.)
> Is there a logical reason?
For what? There's no reason it returns true rather than false.
The more interesting question is why doesn't it raise an
exception. <ducks>
--
Grant Edwards grante Yow! These PRESERVES should
at be FORCE-FED to PENTAGON
visi.com OFFICIALS!!
--
http://mail.python.org/mailman/listinfo/python-list