[issue16571] Iterating over inconsistently-indented code block causes execution of code only on last iteration of loop
Ned Batchelder
report at bugs.python.org
Wed Nov 28 19:10:56 CET 2012
Ned Batchelder added the comment:
@Brian: Your code doesn't run in Python 2.7 as you've shown it, it produces an IndentationError. If your code is actually different, and does run, try running it with the -tt flag on Python, which will warn about inconsistent indentation.
----------
nosy: +nedbat
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16571>
_______________________________________
More information about the Python-bugs-list
mailing list