[New-bugs-announce] [issue7012] Tabs is better than spaces for identation

"Martin v. Löwis" martin at v.loewis.de
Mon Sep 28 22:01:42 CEST 2009


> Then some of the arguments I've heard is that some editors shows tabs 
> badly, although true, then most proper editors it's possible to adjust 
> that to your personal preference

That is no option for Python. In Python, it is part of the LANGUAGE
SYNTAX that a tab is 8 columns. Changing that may change the very
meaning of a Python program (i.e. an editor configured to four column
tabs may render a program to MEAN something different than when
formatted to eight column tabs).

So a tab is 8 columns, period.

> In a program with 200 lines of code we have roughly 600 extra 
> keystrokes with spaces, unless using a proper editor which shows tabs 
> nicely.

I think you should get a different editor then. I press tab in my
editor and still get four spaces.

> Tabs use less space, which is usable when uploading and downloading 
> code a lot (which you do when using version control).

That's negligible, compared to the rest of the file.




More information about the New-bugs-announce mailing list