[Python-3000] Fwd: Re: Total ordering and __cmp__

Raymond Hettinger python at rcn.com
Wed Mar 21 22:48:23 CET 2007


[Guido van Rossum]
>It was well-defined because I had to do *something* that depended only
>on the keys and values and not on object identities etc. I never
>considered it *userful* and I don't know of anyone who used it.

Also, dict ordering would be confusing in Py3k where the views use the inequality operators to express subset/superset relationships.  As a side benefit, the dict equality test will speed-up once the dict ordering code is eliminated.


Raymond


More information about the Python-3000 mailing list