[Python-3000] Total ordering and cmp (original) (raw)

Daniel Stutzbach daniel at stutzbachenterprises.com
Wed Mar 21 23:36:50 CET 2007


On 3/21/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

In addition to this, what about the idea of a Python-level richcmp method? It would provide a single point of override for classes that wanted to use it, and it shouldn't upset any default behaviours since it's just exposing what's there at the C level anyway.

I apologize if this is a silly question, but what would be the difference between the proposed richcmp and the old cmp that's being removed?

-- Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises LLC



More information about the Python-3000 mailing list