Iterating order of dict.items()
John Hunter
jdhunter at ace.bsd.uchicago.edu
Tue Jul 22 12:04:41 EDT 2003
>>>>> "Robin" == Robin Cull <robin.cull at pace.co.uk> writes:
Robin> So, is the order of dict.items() defined? If so, what is
Robin> that order? Is there any way to control the order my dict
Robin> is iterated over?
See the FAQ:
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.091.htp
The Cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747
And the usenet archives on http://groups.google.com
search for: python order dictionary
John Hunter
More information about the Python-list
mailing list