[Tutor] Using contents of a document to change file names, (was Re: how to extract data only after a certain ...)
sander.sweers at gmail.com
Tue Oct 12 21:39:19 CEST 2010
On 12 October 2010 21:15, Joel Goldstick <joel.goldstick at gmail.com> 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 .
More information about the Tutor