Georg Neis wrote:
> * Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>> Steven D'Aprano wrote:
>>>>>> 1+0j == 1 > 0
>>> True
>>
>> (1+0j == 1) yields True, which is comparable to 0.
> 
> "a == b > c" is equivalent to "a == b and b > c":

Right. Stupid me :) Doesn't do much to the point, though.

>>>> 1 == 1+0j > 0
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: cannot compare complex numbers using <, <=, >, >=

Reinhold
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to