[ python-Bugs-1079011 ] Incorrect error message (somewhat)
SourceForge.net
noreply at sourceforge.net
Sat Dec 4 20:44:05 CET 2004
Bugs item #1079011, was opened at 2004-12-04 20:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1079011&group_id=5470
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: Incorrect error message (somewhat)
Initial Comment:
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1079011&group_id=5470
More information about the Python-bugs-list
mailing list