Why are there no ordered dictionaries?

Mike Meyer mwm at mired.org
Sun Nov 20 21:12:03 EST 2005


Christoph Zwerschke <cito at online.de> writes:
> Ben Finney wrote:
>> Another possibility: ordered dictionaries are not needed when Python
>> 2.4 has the 'sorted' builtin.
> 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."

And how would an ordered dictionary help in this case?

    <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list