[Python-3000] Total ordering and cmp (original) (raw)
Terry Reedy tjreedy at udel.edu
Wed Mar 21 19:52:01 CET 2007
- Previous message: [Python-3000] Total ordering and __cmp__
- Next message: [Python-3000] Total ordering and __cmp__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Georg Brandl" <g.brandl at gmx.net> wrote in message news:etrj1a$l9a$1 at sea.gmane.org... | Yes, but dictionaries had an explicit ordering in dictcompare() which was | deleted.
Is dict_compare something added in 2.5? It is neither a builtin or dict method in 2.4.
In any case, this point is that dict ordering is as arbitrary as ordering, for instance, a dict and a string. Since Guido stopped the experiment of totally ordering all objects when complex nums were added, consistency suggests that all fake orderings be eliminated, leaving only the order of numbers, characters, and sequences of comparable objects.
Terry Jan Reedy
- Previous message: [Python-3000] Total ordering and __cmp__
- Next message: [Python-3000] Total ordering and __cmp__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]