[issue11422] indentation problem in if, elif, else statements

Raymond Hettinger 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.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11422>
_______________________________________


More information about the Python-bugs-list mailing list