IndentationError: unexpected indent

Wim Vogelaar wim.vogelaaratmc2worlddotorg
Sat Jun 16 08:58:41 CEST 2007


> Note: for your indentation problem, try to use an editor allowing to 
> display tab and spaces and then identify the problem location, or replace 
> all tabs by 4 spaces and configure the editor to only use spaces.

It would be very helpful when Python would warn you when there are tabs in 
your source.

So instead of only saying: "IndentationError: unexpected indent"
there could be an additional message saying: "there are tab characters in 
that line, please remove them".

Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/





More information about the Python-list mailing list