Why are there no ordered dictionaries?

Ganesan Rajagopal rganesan at myrealbox.com
Tue Nov 22 23:37:30 EST 2005


>>>>> bonono at gmail com <bonono at gmail.com> writes:  > what would be 
the definition of "sorted" and "ordered", before we can > go on ? 
Sorted would be ordered by key comparison. Iterating over such a 
container will give you the keys in sorted order. Java calls this 
a SortedMap. See 
http://java.sun.com/j2se/1.4.2/docs/api/java/util/SortedMap.html 
C++ STL map container is also a Sorted Associative container. See 
http://www.sgi.com/tech/stl/Map.html  Ganesan 

-- 
Ganesan Rajagopal (rganesan at debian.org) | GPG Key:
1024D/5D8C12EA Web: http://employees.org/~rganesan        |
http://rganesan.blogspot.com





More information about the Python-list mailing list