amaury forgeot darc wtfjetjlgmailcom nicholas wrote hello times practice tripped python keeps variables scope loopand wasnt immediately obvious problem think one ugliest nonintuitive features hope others agree changed py3k range11 pass printa 10 use cases last value loop variable needed break statement myobject somelist myobjectfits break else myobject somedefaultvalue continue myobject see example csvpy function snifferhas_header loop tries find suitable value thistype variable use like use pattern avoids additional variable meaning still separates search processing btw py3k version two obvious simplifications due longint massive replace amaury forgeot darc _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom thu 07 aug 2008 210446 0200 python3000 end scope iteration variables loop