4 ms·
Technically that's incorrect. A parameter list has an implicit line continuation so the 4 spaces aren't necessary. if x: ----some_long_func_name(...,
by Goladus 15y ago
Technically that's incorrect. A parameter list has an implicit line continuation so the 4 spaces aren't necessary.
if x:
----some_long_func_name(...,
blah...)
----fn2(x)
else:
----fn3()
However, I do agree that using tabs in python quickly becomes an enormous headache.
- Peaker 15y agoMy point was not that the code becomes incorrect -- but that the point of indentation is to make code readable, and it is lost when using tabs because the only correct use of tabs for indentation is not well supported by editors in practice.