Dictionary Bug ? Python 1.5 & 2.2
Joshua Muskovitz
joshm at taconic.net
Sun Jan 6 13:33:27 EST 2002
>From _The Quick Python Book_:
"The order of the keys in a list returned by keys() has no meaning -- they
are not necessarily sorted, and they do not necessarily occur in the order
they were created. In fact, your Python might print out the keys in a
different order than my Python did. If you need keys sorted, you can store
them in a list variable, and then sort that list."
Hope this helps.
-- josh
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list