In what order does Python read dictionary keys?

Moshe Zadka moshez at math.huji.ac.il
Tue Jun 8 22:40:20 EDT 1999


On Tue, 8 Jun 1999 tcpeter at my-deja.com wrote:

<about the order of keys()>
> 
> OK.  So is there a way to ensure a specific order?  In this instance
> I've given it's not particularly critical, but there are times where it
> might be.  Any ideas?

Subclass UserDict.UserDict.
--
Moshe Zadka <mzadka at geocities.com>. 
QOTD: My own exit is more likely to be horizontal then perpendicular.






More information about the Python-list mailing list