Documentation for iteration in mappings

2005-10-25 Thread Dennis Benzinger
Hi! I must be blind because I didn't find anything in the documentation which says iterating over an dictionary iterates over its keys. For example a_dictionary = {0: zero, 1: one} for x in a: print x gives you 0 1 Where is this information hidden? :) Bye, Dennis --

Re: Documentation for iteration in mappings

2005-10-25 Thread Michael Ströder
Dennis Benzinger wrote: I must be blind because I didn't find anything in the documentation which says iterating over an dictionary iterates over its keys. For example a_dictionary = {0: zero, 1: one} for x in a: print x gives you 0 1 Where is this information hidden? :)

Re: Documentation for iteration in mappings

2005-10-25 Thread Steven D'Aprano
On Tue, 25 Oct 2005 18:02:47 +0200, Michael Ströder wrote: Dennis Benzinger wrote: I must be blind because I didn't find anything in the documentation which says iterating over an dictionary iterates over its keys. [snip] Where is this information hidden? :) You should examine your