Nested loops confusion
nobody at 127.0.0.1
Thu May 11 23:07:15 CEST 2006
conor.robinson at gmail.com wrote:
> Call me crazy, but be careful when programming python in different text
> editors and in general, ie cutting and pasting, tabing and spacing.
> Loops can look fine and not work (try moving around test print
> statements for iterators), in this case try re-tabing your indents so
> that everything is uniform in the editor you are using.
the -tt flag is a good way to catch/avoid such problems:
More information about the Python-list