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”?
On Thu, 16 Feb 2023 at 04:18, scruel tao <scruelt@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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:52:48 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,057 |
Messages: | 6,416,603 |