Comment 7 for bug 939577

Revision history for this message
Ryan Kaskel (ryankaskel) wrote :

I'm not sure why anyone would want multiple indentation lengths in a Python file. While it is allowed, I've never seen code written like that.

I think python-mode should default to the style defined in PEP 8 (http://www.python.org/dev/peps/pep-0008/). One of the first lines on that doc says "Use 4 spaces per indentation level."

The user should surely be allowed to change that but IMO it should be really difficult to use a mix of indentation lengths and it definitely shouldn't be the default.

Maybe I'm wrong, but wouldn't changing this make the code less complex because multiple indentation lengths wouldn't be an issue?