Comment 9 for bug 939577

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 939577] Re: Fourth level blocks indent incorrectly

Am 24.02.2012 18:35, schrieb Ryan Kaskel:
> 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/).

it does

One of the first lines on
> that doc says "Use 4 spaces per indentation level."
>

just the Python-mode default

> The user should surely be allowed to change that but IMO it should be
> really difficult to use a mix of indentation lengths

Why? IMO it should be up to the user. We assist the Python syntax as
smoothly and complete as possible.

  and it definitely
> shouldn't be the default.

it is

>
> Maybe I'm wrong, but wouldn't changing this

Relying on a hard-coded four-space indent would be less complex indeed.
But it would break Python rules. No need so far as indentation works BTW.

Rather tell: how did you produce that 8-space indent?
If it came out from common proceeding, we have a bug.

Need a description of these steps still,

Andreas

  make the code less complex
> because multiple indentation lengths wouldn't be an issue?
>