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

Ian Bicking ianb at colorstudy.com
Thu Oct 23 12:46:50 EDT 2003


On Thursday, October 23, 2003, at 02:07 AM, Steve Lamb wrote:
> On 2003-10-23, Christian Seberino <seberino at spawar.navy.mil> wrote:
>> Each has trade offs.... I don't like breaking last line into 2 pieces
>> but at least "class", "def", "for" and "if" don't blend into each
>> other as easily as in the 2nd example.
>
>     They blend in?  How so?  8 spaces is way too far for the eyes, or 
> at least
> *my* eyes, to skip without causing serious pauses.  2 spaces, while I 
> use it
> immensely in my Perl days, is where blending occurs.  4 spaces it's 
> pretty
> clear that the next line down is a separate block while not having to 
> jump
> partway to Siberia to indicate it.

Okay, okay, let's just compromise somewhere in between: 5 character 
indents.

--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org






More information about the Python-list mailing list