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

SourceForge.net noreply at sourceforge.net
Wed Jun 14 08:29:36 CEST 2006


Bugs item #1501122, was opened at 2006-06-05 17:10
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Fixed
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.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-06-14 06:29

Message:
Logged In: YES 
user_id=849994

Thanks for the report, fixed in rev. 46949, 46950 (2.4).

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

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