I've had indentations problems in Python files twice, both times were my fault, and both times, my ide caught them.
The first time was when I decided I only needed 2 spaces worth of indentation so I could nest more deeply. Then I had to change all my code from 4 to 2 (that vim script too my like 5 minutes to figure out cuz I was new).
The second time was when I learned to refactor and went back to 4 spaces so I'd be in line with common style. That time, the vim script took slightly longer because it kept infinitely recursing. Neither time led to an actual indentation error being thrown by the interpreter because the interpreter never saw the code.
1
u/doulos05 Jul 26 '18
I've had indentations problems in Python files twice, both times were my fault, and both times, my ide caught them.
The first time was when I decided I only needed 2 spaces worth of indentation so I could nest more deeply. Then I had to change all my code from 4 to 2 (that vim script too my like 5 minutes to figure out cuz I was new).
The second time was when I learned to refactor and went back to 4 spaces so I'd be in line with common style. That time, the vim script took slightly longer because it kept infinitely recursing. Neither time led to an actual indentation error being thrown by the interpreter because the interpreter never saw the code.