[issue16571] Iterating over inconsistently-indented code block causes execution of code only on last iteration of loop
Mark Dickinson
report at bugs.python.org
Wed Nov 28 17:39:46 CET 2012
Mark Dickinson added the comment:
This is expected behaviour for Python 2.x: Python interprets every TAB character as advancing to the next multiple-of-8 column, regardless of how your editor sees it. It would be too disruptive to change this behaviour in Python 2.x.
It's already fixed in Python 3: there it's a syntax error to mix tabs and spaces in this way. Python 2.7 gives a warning if you run with the '-3' flag.
----------
nosy: +mark.dickinson
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16571>
_______________________________________
More information about the Python-bugs-list
mailing list