[issue13905] Built-in Types Comparisons should mention rich comparison methods

2013-10-12 Thread Roundup Robot
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

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
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 <

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
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