This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gerrit
Recipients
Date 2004-12-04.19:44:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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?
History
Date User Action Args
2007-08-23 14:28:08adminlinkissue1079011 messages
2007-08-23 14:28:08admincreate