[issue11422] indentation problem in if, elif, else statements
report at bugs.python.org
Mon Mar 7 05:43:39 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
In both cases, if-clause and the else-clause are at the beginning of the line (from Python's point of view).
The difference is that the Python command line interpreter adds a "..." to the beginning of secondary lines. That makes the else-clause visually line-up with the if-clause which is prefixed with ">>>".
With IDLE, the prefix for a secondary line is "", so the else-clause is still at the beginning of the line eventhough it doesn't visually line-up with the if-clause.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list