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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 19 May 2002 19:49:55 -0700


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

Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
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.



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

>Comment By: Stephen M. Gava (elguavas)
Date: 2002-05-20 12:49

Message:
Logged In: YES 
user_id=75867

I believe this was debated at length and judged to be
correct behaviour in python idle, thus in idlefork also.

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

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