An ordered dictionary for the Python library?

Roel Schroeven rschroev_nospam_ml at fastmail.fm
Wed Sep 12 10:17:24 EDT 2007


Michele Simionato schreef:
> On Sep 12, 2:42 pm, Steven D'Aprano <st... at REMOVE-THIS-
> cybersource.com.au> wrote:
>> On Wed, 12 Sep 2007 07:33:45 +0000, Mark Summerfield wrote:
>> In fact, I'm not sure what people mean by ordered dicts. I assume they
>> mean the keys are ordered, not the values. But ordered by what? Insertion
>> order? Modification order? Alphabetical order?
> 
> Insertion order.

Mark referred to C++ and the sort function, so I assume he meant 
alphabetical order (or the equivalent for types other than strings).

-- 
If I have been able to see further, it was only because I stood
on the shoulders of giants.  -- Isaac Newton

Roel Schroeven



More information about the Python-list mailing list