[python-win32] Request for comments - the spaces issue

Michael Foord fuzzyman at voidspace.org.uk
Sat May 24 18:20:50 CEST 2008


bob gailer wrote:
> Tim Golden wrote:
>> [snip]
>
>> Likewise I imagine there are many who find my two-spaces
>> indent style cluttered while I find even four and certainly any
>> more to be grotesquely elongated.
>
> I also prefer the 2 space indent!
>
> I also realize that when I wrote my previous reply I was not conscious 
> that I was replying to the original post. So I referred to you as Tim. 
> Sorry for that.
>

Four spaces is useful so that anything more than a few levels 
indentation really *is* too elongated - it is a good sign that you need 
to refactor your code. :-)

Dropping to two space indent isn't a good way of solving the problem. ;-)

FWIW Guido remarked a while ago that all of google's Python code is two 
space indented.

Michael Foord
http://www.ironpythoninaction.com/


More information about the python-win32 mailing list