Python indentation (3 spaces)

Christian Gollwitzer auriocus at gmx.de
Sun Oct 14 03:48:20 EDT 2018


Am 14.10.18 um 02:45 schrieb Grant Edwards:
> On 2018-10-13, Peter J. Holzer <hjp-python at hjp.at> wrote:
>>
>>> For "just use tabs" to work, all of those tools would have to
>>> magically recognize that they're looking at Python source and adjust
>>> the tab size accordingly.  That isn't going to happen.
>>
>> Well, no. The idea of "just use tabs" isn't have a different tab width
>> per language, but a different tab width per user.
> 
> You work in a different environment than I do.  for me, tab width
> varies from one project to another (sometimes even in the same
> language).  I don't get to pick just one tab width.

But if you use only tabs for indentation, the tab width setting simply 
does not matter. I'm in favour of using only tabs.

There is a disadvantage only if you try to align something which is NOT 
an indentation level, e.g. when there are big string constants or list 
constants etc.

	Christian





More information about the Python-list mailing list