Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok??
Stephen Horne
steve at ninereeds.fsnet.co.uk
Sun Oct 26 18:24:08 EST 2003
On Wed, 22 Oct 2003 16:16:15 -0700, Erik Max Francis <max at alcyone.com>
wrote:
>Christian Seberino wrote:
>
>> I REALLY WANT TO DO MY OPEN SOURCE PYTHON PROJECT
>> WITH 8 SPACE IDENTS!!!!
>
>You don't really think a style guide is going to stop you from doing
>that, do you?
Exactly.
My advice is basically do what suits you. Just do it consistently.
Personally, I prefer two space indents. I'm just too lazy to type any
more if I can avoid it. But when editing existing code, in any
language, I just go with what's already there - as long as there is
some consistent indentation rule evident, anyway.
Are there any tools which can intelligently redo the indentation in a
Python source file? Preferably respecting other formatting conventions
where practical, though of course I accept that no program could
replace a programmer with an eye for readability in this respect.
--
Steve Horne
steve at ninereeds dot fsnet dot co dot uk
More information about the Python-list
mailing list