[Tutor] Problem with "elif"

Andrei Kulakov ak@silmarill.org
Sun, 25 Nov 2001 22:27:33 -0500


On Sun, Nov 25, 2001 at 10:20:28PM -0500, dman wrote:
> On Sun, Nov 25, 2001 at 06:04:13PM -0500, Andrei Kulakov wrote:
> | On Sun, Nov 25, 2001 at 10:52:11PM +0000, alan.gauld@bt.com wrote:
> | > > >>> y = 1900
> | > > >>> leap = "no"
> | > > >>> if y % 400 == 0 :
> | > >         leap = "yes"
> | > >     elif y % 100 == 0 :
> | > >             
> | > > IndentationError: unindent does not match any outer 
> | > > indentation level (line 3)
> | > 
> | > This looks like you are using IDLE - coz there are no ... prompts.
> | 
> | I never used it, but this sucks.. *Especially* cause it'd be really easy
> | to fix.
> 
> Yeah!
> 
> Try running :
> 
> import sys
> sys.ps2 = '... '
> 
> 
> Then try entering that 'if' statement.  You can probably search
> through the IDLE sources (I would use 'grep' but if you are on windows
> without cygwin, good luck) to find "sys.ps2" and fix the prompt.
> 
> -D

Well, I don't use windows myself, so I was more like meaning that its
authors should fix it up, or something :P.

> 
> -- 
> 
> Even youths grow tired and weary,
>     and young men stumble and fall;
> but those who hope in the Lord 
>     will renew their strength.
> They will soar on wings like eagles;
>     they will run and not grow weary,
>     they will walk and not be faint.
> 
>         Isaiah 40:31
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org