[ python-Bugs-1501122 ] Lang ref '<' description in 5.9 not consistent with __lt__

SourceForge.net noreply at sourceforge.net
Mon Jun 5 19:10:03 CEST 2006


Bugs item #1501122, was opened at 2006-06-05 12:10
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=1501122&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Andy Harrington (andyharrington)
Assigned to: Nobody/Anonymous (nobody)
Summary: Lang ref '<' description in 5.9 not consistent with __lt__

Initial Comment:
>From the reference manual section 5.9:
"The operators <, >, ==, >=, <=, and != compare the
values of two objects. The objects need not have the
same type. If both are numbers, they are converted to a
common type. Otherwise, objects of different types
always compare unequal, and are ordered consistently
but arbitrarily."

The last sentence may apply to built-in types, but '<'
may be evaluated via __lt__ for user defined types, and
there are no such restrictions as I read the
documentation.  If this section is only referring to
built-in types it shuld be clearly stated.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1501122&group_id=5470


More information about the Python-bugs-list mailing list