Nested loops confusion
Edward Elliott
nobody at 127.0.0.1
Thu May 11 17:07:15 EDT 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:
#!/usr/bin/python -tt
More information about the Python-list
mailing list