do people really complain about significant whitespace?

Georg Brandl g.brandl-nospam at gmx.net
Thu Aug 10 11:59:53 EDT 2006


Gerhard Fiedler wrote:

> function()
>         loop1()
>                 blah
>                 blah
> 
>                 loop2()
>                         blah
> 
>                         loop3()
>                                 blah
>                         #end loop3()
> 
>                         blah3
>                 #end loop2()
>         #end loop1()
> 
>         otherloop()
>                 blah
>         #end otherloop()
> #end function()
> 
> Of course, few people will write like this, but it probably is easier to
> write a Python code formatter that adds them than it is to write a C code
> formatter that adds proper indentation and provides your preferred
> placement of braces.

It's already there: Tools/scripts/pindent.py.

Georg



More information about the Python-list mailing list