non descriptive error

jepler at unpythonic.net jepler at unpythonic.net
Mon Oct 10 01:30:46 CEST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051009/02b4f83a/attachment.pgp>


More information about the Python-list mailing list