While coding python I'm using only 2 spaces to indent, sure PEP-8 really recommend to have 4 spaces, but historically for me it's unusual.
So, can anyone convince me to use 4 spaces instead of 2? What pros and cons?
P.S. And finally, what's easy way to convert all existing codebase from 2 spaces to 4 spaces?
P.P.S. PEP-8 Also srictly recommend not using tabs for indention. read here
So, to summarize:
Pros:
- Have more space to arrange when wraping string more than 80 lines long.
- Can copy code from snippets and it just works.
Cons:
- With deeper level of nested statements you have less space for actual code.
Thanks.