"Eric Dorsey" <[email protected]> wrote
config_names
{'start_time': '18:00:00', 'gray_scale': True, 'long': 120.0}
for i, x in config_names.items():
... print i, x
...
start_time 18:00:00
gray_scale True
long 120.0
Thats pretty much a happy coincidence, there is no guarantee
that it will work like that for all dictionaries:
d = {1:2,3:4,8:9,5:7}
for i,x in d.items(): print i,x
...
8 9
1 2
3 4
5 7
Alan G.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor