Why are there no ordered dictionaries?
Christoph Zwerschke
cito at online.de
Wed Nov 23 15:19:29 EST 2005
>>* C++ has a Map template in the STL which is ordered (a "Sorted
>>Associative Container").
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
dictionaries".
-- Christoph
More information about the Python-list
mailing list