Roundup Robot added the comment:
New changeset 9f1e1da820fb by Georg Brandl in branch '2.7':
Closes #13905: mention rich-comparison methods in addition to __cmp__ when
documenting how to make classes comparable and orderable.
http://hg.python.org/cpython/rev/9f1e1da820fb
--
nosy: +pytho
Catalin Iacob added the comment:
Here's my attempt at a patch. It mostly takes the text from the default branch
and adds references to __cmp__.
--
keywords: +patch
Added file: http://bugs.python.org/file24361/issue13905v1.patch
___
Python tracker
<
New submission from Catalin Iacob :
In 2.7 the Comparisons section of stdtypes.rst only talks about __cmp__ and
never mentions the rich comparison methods:
"Instances of a class normally compare as non-equal unless the class defines
the __cmp__() method. Refer to Basic customization) for inform