"C M Caine" <cmca...@googlemail.com> wrote
That's the first I've read of iterating through dictionaries, I'd
assumed it was impossible because they're unordered.

Iteration doesn't require order, only to get each item once.
Even in very old Python versions you could iterate a dictionary via the keys() method. More recently you can do it directly - although the effect is the same. There is no guarantee of order only that you process every item once.

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to