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 eric.araujo
Recipients eric.araujo, exarkun, fijal, giampaolo.rodola, r.david.murray, rhettinger, therve
Date 2011-04-13.15:25:04
SpamBayes Score 0.00014633122
Marked as misclassified No
Message-id <1302708305.32.0.800755773675.issue3051@psf.upfronthosting.co.za>
In-reply-to
Content
The global docs index has one entry for “comparison”, which is http://docs.python.org/dev/reference/expressions#not-in
This other page says that “in general, __lt__() and __eq__() are sufficient, if you want the conventional meanings of the comparison operators”: http://docs.python.org/dev/library/stdtypes.html#comparisons

Other useful bits:
http://docs.python.org/dev/reference/datamodel#object.__lt__
http://docs.python.org/dev/library/functions#sorted
http://docs.python.org/dev/library/functools#functools.cmp_to_key
http://docs.python.org/dev/howto/sorting#odd-and-ends

It may be useful to add more cross-links between those places (especially pointing to the first link).
History
Date User Action Args
2011-04-13 15:25:05eric.araujosetrecipients: + eric.araujo, rhettinger, exarkun, therve, fijal, giampaolo.rodola, r.david.murray
2011-04-13 15:25:05eric.araujosetmessageid: <1302708305.32.0.800755773675.issue3051@psf.upfronthosting.co.za>
2011-04-13 15:25:04eric.araujolinkissue3051 messages
2011-04-13 15:25:04eric.araujocreate