|
|
|
|
|
by yati
4833 days ago
|
|
From PEP-8, "Use 4 spaces per indentation level. For really old code that you don't want to mess up, you can continue to use 8-space tabs." [1]. While I agree on ending the '\r\n' mania(which itself is a very hard task), pushing tab stops down my throat is not cool. [1]: http://www.python.org/dev/peps/pep-0008/ |
|
However, damned shall be those who think that tabs are anything but 8 spaces wide and actually use them this way in their code. Tabs really are 8 spaces wide and every terminal will tell you so.
Real world example: just yesterday I've been bitten by Eclipse defaulting to use "4 space wide tabs" for indentation in otherwise space-indented codebase. Everything looked nice and cool until I ran git diff. How could Eclipse developers think that it was a good idea?