[Python-3000] ordered dict for p3k collections?

"Martin v. Löwis" martin at v.loewis.de
Fri Sep 14 23:01:37 CEST 2007


>> That's a sorted dict.  PEP 3115 wants an insertion-ordered dict.
>> You're not the first to confuse them. ;)
> 
> Hmmm, I'd not come across that terminology distinction before.
> I guess I'll have to rename mine then.

I think "insertion-ordered" is over-specification, just to make
the distinction clear. Most of the time, people mean "ordered
dictionary" to say "keys are in a fixed order" - typically insertion
order. When they want to express that the keys ought to be
sorted, they call it "sorted dictionary".

Regards,
Martin



More information about the Python-3000 mailing list