Why are there no ordered dictionaries?
aleax at mail.comcast.net
Mon Nov 21 03:11:00 CET 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...???
More information about the Python-list