Nested loops confusion

Edward Elliott nobody at
Thu May 11 23:07:15 CEST 2006

conor.robinson at 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:
#!/usr/bin/python -tt

More information about the Python-list mailing list