Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok??

Martin v. Löwis martin at v.loewis.de
Thu Oct 23 02:30:40 EDT 2003


soundinmotiondj at yahoo.com (Stan Graves) writes:

> Never heard of that.  I guess I need to read less about programming
> and more about style.  I use 2 space indents.  Easy to type, easy to
> change, and I'm never tempted to use tabs instead...

In non-Python-aware editors (like Usenet messages), I prefer 2-space
indentation as well. While programming larger projects, I use a
Python-aware editor, and that editor makes indentation automatically
(to four spaces), so it is just as easy to type.

Regards,
Martin





More information about the Python-list mailing list