On 12 October 2010 21:15, Joel Goldstick <[email protected]> wrote: > When the dictionary is retrieved, its order depends on the hashed values > rather than the keys themself.
If (big IF here) you really need an ordered dict you can use the OrderedDict from the collections module. However this will only guarantee *insertion* order (except for existing keys). Do make sure you read pep 372 [1]. Greets Sander [1] http://www.python.org/dev/peps/pep-0372/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
