[Idle-dev] [ idlefork-Bugs-502612 ] PyShell strange "else" indentation

noreply@sourceforge.net noreply@sourceforge.net
Fri, 11 Jan 2002 21:39:40 -0800


Bugs item #502612, was opened at 2002-01-11 21:39
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=109579&aid=502612&group_id=9579

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Maxwell (pm67nz)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyShell strange "else" indentation

Initial Comment:
An else clause entered directly at the PyShell 
prompt looks like:

>>> if 1:
        print 1
else:
        print 2

If I try and line up the "else" and "if" I 
get an IndentationError.

OK once you know about it, but confusing for novices.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=109579&aid=502612&group_id=9579