Change the identation base value?

Chris Angelico rosuav at gmail.com
Wed Feb 15 12:20:47 EST 2023


On Thu, 16 Feb 2023 at 04:18, scruel tao <scruelt at hotmail.com> wrote:
>
> Currently, we have following PEP:
> PEP 8: E114 indentation is not a multiple of 4 (comment)
>
> However, I wonder how many people are using 2 spaces as their code indentation in projects? Should it be nesserary for us to change this PEP from “multiple of 4” to “multiple of 2”?
>

Read PEP 8 itself before making a decision.

1) It is NOT rules for all Python code, only the standard library.
2) https://peps.python.org/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds

It is not necessary to change the PEP; it is necessary to fix tools
that claim more authority than they actually have.

ChrisA


More information about the Python-list mailing list