problem with program - debugging leading nowhere

Matthew Sacks ntwrkd at gmail.com
Fri Jan 30 19:31:40 EST 2009


this works.
thanks!

On Fri, Jan 30, 2009 at 3:59 PM, Jervis Whitley <jervisau at gmail.com> wrote:
>
>
>>
>>
>>
>>
>> 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,
>
>



More information about the Python-list mailing list