* 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":

>>> 1 == 1+0j > 0
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: cannot compare complex numbers using <, <=, >, >=
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to