Python indentation (3 spaces)

Chris Angelico rosuav at gmail.com
Sun Oct 14 18:59:40 EDT 2018


On Mon, Oct 15, 2018 at 9:56 AM Alan Bawden <alan at csail.mit.edu> wrote:
> In my experience this is a very common way to assume that tabs will be
> interpreted.  Virtually every source-code file I have encountered since the
> mid 1970s (for any programming language or operating system) has assumed
> either this convention or, slightly less often, its 4-column variant.
>
> It's surprising that you've never encountered it.

I've seen the four-column variant, but never the two. Maybe I just
move in different circles. In any case, I wouldn't say that "two space
indents, collapsed to a tab after eight" is somehow a universal
convention any more than four-space with or without collapsing.

ChrisA



More information about the Python-list mailing list