Source formatting fixer?
Bret
bret.wortman at gmail.com
Fri Dec 14 13:33:44 EST 2007
More information about the Python-list mailing list
Fri Dec 14 13:33:44 EST 2007
- Previous message (by thread): Source formatting fixer?
- Next message (by thread): Source formatting fixer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The thing is, I'm not so much trying to fix indentation issues as
spacing problems that affect readability but not program structure.
All the indentation is fine, this is more trying to change things
like:
if ((one==two)and(three==four)):
a=b+42
c=Classname (a,b)
print "Class %s created"%c.__name__
None of the above is wrong, it's just painfully ugly and given
Python's natural beauty, it seems really wrong all the same....
Bret
On Dec 11, 3:26 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
>
> Python already comes with a reindenter, see Tools\scripts\reindent.py
> If you want to transform y= f ( x- 3 ) into y = f(x - 3) try PythonTidy
> (search this same group for a link)
>
> --
> Gabriel Genellina
- Previous message (by thread): Source formatting fixer?
- Next message (by thread): Source formatting fixer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list