Weird...

Stephen Thorne stephen.thorne at gmail.com
Mon Apr 11 07:21:18 EDT 2005


On Apr 11, 2005 7:57 AM, Joshua Ginsberg <listspam at flowtheory.net> wrote:
>  >>> {'a':1,'b':'2','c':[3,4]}.keys()
> ['a', 'c', 'b']
> 
> How come? :-)

Dicts are not ordered.

See note (3) on this page :
http://www.python.org/doc/current/lib/typesmapping.html

-- 
Stephen Thorne
Development Engineer



More information about the Python-list mailing list