Python indentation (3 spaces)
Rhodri James
rhodri at kynesim.co.uk
Mon Oct 15 07:08:34 EDT 2018
On 15/10/18 05:45, Marko Rauhamaa wrote:
> Chris Angelico <rosuav at gmail.com>:
>> I'm saying I have never seen is this:
>>
>> On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa <marko at pacujo.net> wrote:
>>> However, it is trumped by an older
>>> convention whereby the indentation levels go as follows:
>>>
>>> 0:
>>> 1: SPC SPC
>>> 2: SPC SPC SPC SPC
>>> 3: SPC SPC SPC SPC SPC SPC
>>> 4: TAB
>>> 5: TAB SPC SPC
>>> 6: TAB SPC SPC SPC SPC
>>> 7: TAB SPC SPC SPC SPC SPC SPC
>>> 8: TAB TAB
>>
>> Specifically that two-space indents and tab-collapsing are a
>> *convention*. I have never seen this used anywhere, much less seen it
>> commonly enough to call it a convention.
>
> The two-space indentation is the out-of-the-box default for emacs.
Ahem. It's the default for certain C styles. It's not even the default
for C-mode itself, which is 4. Those of us who believe that tabs are
evil set indent-tabs-mode nil anyway to stop the annoying behaviour.
--
Rhodri James *-* Kynesim Ltd
More information about the Python-list
mailing list