Why are there no ordered dictionaries?
cito at online.de
Wed Nov 23 21:19:29 CET 2005
>>* C++ has a Map template in the STL which is ordered (a "Sorted
Alex Martelli wrote:
> Ordered *by comparisons on keys*, NOT by order of insertion -- an
> utterly and completely different idea.
Shame on me. I talked so much about the difference between "ordered" and
"sorted" and now I wrote such a confusing sentence. You're right, C++
Maps are not an example for "ordered dictionaries", but for "sorted
More information about the Python-list