---------- Forwarded message ---------- From: Jervis Whitley <jervi...@gmail.com> Date: Sat, Jan 31, 2009 at 10:59 AM Subject: Re: problem with program - debugging leading nowhere To: Matthew Sacks <ntw...@gmail.com> Cc: python-list@python.org
> > > > error message: > Traceback (most recent call last): > File "<string>", line 1, in <string> > IndentationError: expected an indented block (<string>, line 39) > > code: > http://pastebin.com/f2f971f91 > Hi, It looks like you have commented out a line on line 30, you need to place something in here, as python is expecting an indented level after your 'if'. (how about a pass statement or a print saying some placeholder help details.) On a side note, I've only had a quick skim, you shouldn't compare o to an empty string "" using the 'is', is tests identity not equality. So what you are saying is is o the exact same empty string that I am creating "" (obviously it never will be, because you just created it then with "") . Use the equality operator == instead. or in your case !=. Cheers, <reply-all>
-- http://mail.python.org/mailman/listinfo/python-list