Then is there anyway to sort the numeric keys and avoid future implemetation 
confusion?


"Ant" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Mar 7, 8:18 pm, "John" <[EMAIL PROTECTED]> wrote:
> ...
>> However, I am not sure whether it is always like this. Can anybody 
>> confirm
>> my finding?
>
>>From the standard library docs:
>
> "Keys and values are listed in an arbitrary order which is non-random,
> varies across Python implementations, and depends on the dictionary's
> history of insertions and deletions."
>
> i.e. the behaviour you have discovered is an implementation detail,
> and could change in future versions.
> 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to