Spaces and tabs again

Torsten Bronger bronger at
Sat Aug 13 12:16:27 CEST 2005


bearophileHUGS at writes:

> [...]  I know that some people likes tabs, and other people likes
> spaces, so probably a single standard cannot be enforced, but I
> think the python compiler must generate an error (and stop
> compiling) when the sourcecode of a module contains both spaces
> and tabs to indent the lines of code (and comments lines too?).

I think the interpreter option -tt does this but I've never used it.

I agree that mixing spaces and tabs is a bad thing.  Unfortunately,
my default Emacs configuration did so, whyever.  I changed it a
couple of days ago.  However, the PEP 8 strongly dicourages it


Torsten Bronger, aquisgrana, europa vetus

More information about the Python-list mailing list