Message28708
| Author |
andyharrington |
| Recipients |
| Date |
2006年06月05日.17:10:02 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:40:23 | admin | link | issue1501122 messages |
| 2007年08月23日 14:40:23 | admin | create |
|