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.
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:17 | admin | set | github: 43460 |
| 2006年06月05日 17:10:02 | andyharrington | create | |