[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 3 22:08:44 CET 2009


Giovanni Bajo wrote:

> Just today, I was talking with a colleague (which is learning Python 
> right now) about "ordered dict". His first thought was a dictionary that, 
> when iterated, would return keys in sorted order.

I wonder whether "indexed list" would be a more appropriate
name for what we're talking about here -- basically
a sequence type that holds things in arbitrary order, but
with the additional ability to look things up quickly by
a key.

-- 
Greg


More information about the Python-Dev mailing list