problem with program - debugging leading nowhere

Jervis Whitley jervisau at gmail.com
Sat Jan 31 00:59:24 CET 2009


>
>
>
> 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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090131/0acce309/attachment.html>


More information about the Python-list mailing list