Message23538
Comparing complex numbers with cmp yields:
>>> cmp(1+3j, 1+3j)
0
>>> cmp(1+3j, 3+4j)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: cannot compare complex numbers using <, <=,
>, >=
Well, I didn't use <, <=, > or >=. It's not a major
bug, but it doesn't look too nice... would it be
possible to return NotImplemented? Or would that be
semantically incorrect? |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:28:08 | admin | link | issue1079011 messages |
| 2007-08-23 14:28:08 | admin | create | |
|