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.

classification
Title: Lang ref '<' description in 5.9 not consistent with __lt__
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: andyharrington, georg.brandl
Priority: normal Keywords:

Created on 2006-06-05 17:10 by andyharrington, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28708 - (view) Author: Andy Harrington (andyharrington) Date: 2006-06-05 17:10
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.
msg28709 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-06-14 06:29
Logged In: YES 
user_id=849994

Thanks for the report, fixed in rev. 46949, 46950 (2.4).
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43460
2006-06-05 17:10:02andyharringtoncreate