Re: Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok??
On Wed, 22 Oct 2003 16:16:15 -0700, Erik Max Francis <max@alcyone.co m>
wrote:
[color=blue]
>Christian Seberino wrote:
>[color=green]
>> I REALLY WANT TO DO MY OPEN SOURCE PYTHON PROJECT
>> WITH 8 SPACE IDENTS!!!![/color]
>
>You don't really think a style guide is going to stop you from doing
>that, do you?[/color]
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
On Wed, 22 Oct 2003 16:16:15 -0700, Erik Max Francis <max@alcyone.co m>
wrote:
[color=blue]
>Christian Seberino wrote:
>[color=green]
>> I REALLY WANT TO DO MY OPEN SOURCE PYTHON PROJECT
>> WITH 8 SPACE IDENTS!!!![/color]
>
>You don't really think a style guide is going to stop you from doing
>that, do you?[/color]
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
Comment