Function editing with Vim throws IndentError

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Jul 27 01:45:39 CEST 2008

In message <g6c4o0$aeq$1 at>, Thomas Troeger wrote:

> Finally, I'd like to throw in this one from the Linux kernel sources,
> from `Documentation/CodingStyle:
> ------------------------------------------------------------------------
> Chapter 1: Indentation
> Tabs are 8 characters, and thus indentations are also 8 characters.
> There are heretic movements that try to make indentations 4 (or even 2!)
> characters deep, and that is akin to trying to define the value of PI to
> be 3.
> [...]
> Now, some people will claim that having 8-character indentations makes
> the code move too far to the right, and makes it hard to read on a
> 80-character terminal screen.  The answer to that is that if you need
> more than 3 levels of indentation, you're screwed anyway, and should fix
> your program.

Which is, of course, a load of nonsense.

More information about the Python-list mailing list