PEP8 and 4 spaces
greg.ewing at canterbury.ac.nz
Fri Jul 4 08:35:04 CEST 2014
Steven D'Aprano wrote:
> Disadvantages of tabs:
> - Many standard Unix/Linux/POSIX tools have a hard time dealing with tabs.
> I call such tools *broken*,
They're not broken, they're just using a different set of
conventions. Unix traditionally uses tab characters as a
form of space compression. The meaning of a tab is fixed,
and configurable indentation is done by inserting a suitable
combination of tabs and spaces.
As long as *all* your tools follow that convention, everything
is fine. The problems arise when you mix in tools that use
The truly broken tools IMO are things like mail handlers that
shrink away in terror when they see a tab and remove it
altogether. There's no excuse for that, as far as I can see.
More information about the Python-list