Why are there no ordered dictionaries?
Alex Martelli
aleax at mail.comcast.net
Sun Nov 20 21:11:00 EST 2005
Christoph Zwerschke <cito at online.de> wrote:
...
> The 'sorted' function does not help in the case I have indicated, where
> "I do not want the keys to be sorted alphabetically, but according to
> some criteria which cannot be derived from the keys themselves."
Ah, but WHAT 'some criteria'? There's the rub! First insertion, last
insertion, last insertion that wasn't subsequently deleted, last
insertion that didn't change the corresponding value, or...???
Alex
More information about the Python-list
mailing list