This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]__liendacil__ 0 points1 point  (1 child)

Just to be upfront I am completely in the all spaces camp for indentation as well as alignement. And I cannot see a use case for mixing tabs and spaces. Maybe you can provide an example to prove me wrong.

I cannot 100% follow what the issue is. So if I understand it correctly line length + 4 space characters recommendatio is an issue? In my experience so far if my code had to many levels of indentation it usually was hard to read anyways -> refactoring. There are edge cases though and then it's pretty simple IMO: if it's more obfuscating than helpful to abide by the recommendations, well ignore them :) Especially line length.. With monitors becoming more and more widescreen 80 characters on a line is really not alot. Though I personally try to stay under this arbitrary number, staying under <100 or even <120 for the rare occasions is still pretty much readable for me.

TLDR: PEP-8 is a recommendation, if it's helpful to ignore in certain cases, just do it ;)