3 ms·
Python's indentation rules as specced originally are considered too loose by most Python programmers, hence PEP8 -- specifying spaces only, and a host of readab
by vessenes 15y ago
Python's indentation rules as specced originally are considered too loose by most Python programmers, hence PEP8 -- specifying spaces only, and a host of readability rules.
Consider that the competing scripting language at launch was Perl.
Now consider the benefit to a large team of well formatted easy to read code; Python's whitespace and indentation rules are there to enhance maintanability and readability, and they generally work.
As the article shows, you CAN make python look worse, but you shouldn't.
Incidentally, languages like Google Go take this one farther and embed deterministic formatting as a part of the language toolkit. This is brilliant. I would like to see such a thing incorporated into Python as well.. (Where's my backlist of to-do items?)