for key: in dict: # over dict.keys() for :value in dict: # over dict.values() for : in dict: # a delay loop
[Thomas Wouters]
Wot's the last one supposed to do ? 'for unused_var in range(len(dict)):' ?
Well, as the preceding line said in the original:
2/3rd of these are marginally more attractive [than "if key:value in dict"]:
I think you've guessed which 2/3 those are <wink>. I don't see that the last line has any visible semantics whatsoever, so Python can do whatever it likes, provided it doesn't do anything visible. You still hang out on c.l.py! So you gotta know that if something of the form x:y is suggested, people will line up to suggest meanings for the 3 obvious variations, along with x::y and x:-:y and x lambda y too <0.9 wink>.