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.

Author mrts
Recipients LambertDW, georg.brandl, loewis, mrts, rhettinger
Date 2009-03-14.08:44:12
SpamBayes Score 0.00010831445
Marked as misclassified No
Message-id <1237020255.45.0.205125591209.issue5479@psf.upfronthosting.co.za>
In-reply-to
Content
> 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."
History
Date User Action Args
2009-03-14 08:44:15mrtssetrecipients: + mrts, loewis, georg.brandl, rhettinger, LambertDW
2009-03-14 08:44:15mrtssetmessageid: <1237020255.45.0.205125591209.issue5479@psf.upfronthosting.co.za>
2009-03-14 08:44:14mrtslinkissue5479 messages
2009-03-14 08:44:12mrtscreate