Message83574
> This is the 2.6 version. What about the 3.0 version in
> http://docs.python.org/3.0/reference/datamodel.html#object.__lt__
> needs to be updated?
When functools.total_ordering (whether it lands in functools is open)
lands that section should be amended in the lines of the following:
"There are no implied relationships among the comparison operators. The
truth of x==y does not imply that x!=y is false. Accordingly, when
defining __eq__(), one should also define __ne__() so that the operators
will behave as expected.
However, given a class defining one or more ordering methods,
`functools.total_ordering`_ class decorator can be used to fill in the
rest. Please see the documentation of `functools.total_ordering`_ for
further details." |
|
Date |
User |
Action |
Args |
2009-03-14 08:44:15 | mrts | set | recipients:
+ mrts, loewis, georg.brandl, rhettinger, LambertDW |
2009-03-14 08:44:15 | mrts | set | messageid: <1237020255.45.0.205125591209.issue5479@psf.upfronthosting.co.za> |
2009-03-14 08:44:14 | mrts | link | issue5479 messages |
2009-03-14 08:44:12 | mrts | create | |
|