[Python-talk] mat3d error

Python python at venix.com
Thu Sep 11 17:40:17 EDT 2008


On Thu, 2008-09-11 at 17:11 -0400, Labitt, Bruce wrote:
> I thought I fixed that.  Now I'm getting
> 
> IndentationError: unindent does not match any outer indentation level
> 
> -Bruce
> 
Well it could be tab/space issues.  Python assumes 8-space tab-stops
(i.e. 1,9,17,...).  Could your editor be doing something different?  If
your editor is using 4-space tabs, then your line may look very
different on the screen from the way Python views it.  I normally save
files with tabs converted to spaces.  tabnanny.py can be run to report
about tab problems with a file.

Usage: /usr/lib/python2.5/tabnanny.py [-v] file_or_directory ...
  
Paste a few lines of context into an email and we should be able to spot
the error.

-- 
Lloyd Kvam
Venix Corp
DLSLUG/GNHLUG library
http://dlslug.org/library.html
http://www.librarything.com/catalog/dlslug
http://www.librarything.com/rsshtml/recent/dlslug
http://www.librarything.com/rss/recent/dlslug



More information about the Python-talk mailing list