Re: Nested if and expected an indent block

2006-08-14 Thread Pierre Barbier de Reuille
[EMAIL PROTECTED] wrote: > Simon Forman wrote: >>> I got rid of the triple quote string at the start of the function, and >>> that cleared up the problem, though I don't know why. >>> >> Ah, yes. The docstring for a function (or at least its first >> triple-quote) must be indented to the same degre

Re: Nested if and expected an indent block

2006-08-13 Thread [EMAIL PROTECTED]
Simon Forman wrote: > > I got rid of the triple quote string at the start of the function, and > > that cleared up the problem, though I don't know why. > > > Ah, yes. The docstring for a function (or at least its first > triple-quote) must be indented to the same degree as its statements. > (If y

Re: Nested if and expected an indent block

2006-08-13 Thread Simon Forman
[EMAIL PROTECTED] wrote: > Dustan wrote: > > > > > To see the full traceback, assuming you're using windows, you need to > > run it on the Command prompt. > > Hi Dustan: > > Here's the traceback: > > C:\docs\Python>SylloSolver.py > File "C:\docs\Python\SylloSolver.py", line > """ > ^ >

Re: Nested if and expected an indent block

2006-08-13 Thread [EMAIL PROTECTED]
Dustan wrote: > > To see the full traceback, assuming you're using windows, you need to > run it on the Command prompt. Hi Dustan: Here's the traceback: C:\docs\Python>SylloSolver.py File "C:\docs\Python\SylloSolver.py", line """ ^ IndentationError: expected an indented block I go

Re: Nested if and expected an indent block

2006-08-13 Thread Dustan
> Thanks for the replies: > > I'm sorry, the colon is there in the original, I accidentally blew it > off when I added the comment. The only information I get from IDLE is a > dialog box that says: > > Syntax Error > There's an error in your program: > expected an indented block > > Keith To see t

Re: Nested if and expected an indent block

2006-08-13 Thread [EMAIL PROTECTED]
alisonken1 wrote: > [EMAIL PROTECTED] wrote: > > Greetings: > > > > elif q.lower() == "some"# s in some is highlighted > > > Any ideas? Thanks in advance. > > > > Keith > > Would the missing colon have something to do with it? > > > elif q.lower() == "some": Thanks for the replies: I'm

Re: Nested if and expected an indent block

2006-08-13 Thread alisonken1
[EMAIL PROTECTED] wrote: > Greetings: > elif q.lower() == "some"# s in some is highlighted > Any ideas? Thanks in advance. > > Keith Would the missing colon have something to do with it? > elif q.lower() == "some": -- http://mail.python.org/mailman/listinfo/python-list

Re: Nested if and expected an indent block

2006-08-13 Thread Tim Williams
On 13 Aug 2006 16:28:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Greetings: > > I'm brand new to Python and decided to write a syllogism solver for a > class I'm taking. At the start of the program, I define a function that > classifies the type of each statement in the syllogism. Pyth

Nested if and expected an indent block

2006-08-13 Thread [EMAIL PROTECTED]
Greetings: I'm brand new to Python and decided to write a syllogism solver for a class I'm taking. At the start of the program, I define a function that classifies the type of each statement in the syllogism. Python tells me that it is expecting an indented block at the s in "some". I can see what