non descriptive error

Timothy Smith timothy at open-networks.net
Sun Oct 9 19:42:07 EDT 2005


jepler at unpythonic.net wrote:

>On Mon, Oct 10, 2005 at 09:12:13AM +1000, Timothy Smith wrote:
>  
>
>>FAYI i have already found it and it was a wrongly indented code block :/
>>    
>>
>
>When indentation leaves an illegal program structure, Python gives a very
>informative error message, such as
>
>  File "/tmp/x.py", line 3
>    return 3
>           ^
>IndentationError: unindent does not match any outer indentation level
>
>Jeff
>  
>
not in my first case it didn't. i simply tabbed an incorrect block in 
and it worked. i should have saved it to show you



More information about the Python-list mailing list