Pretty Printing Like Tidy for HTML
John J. Lee
jjl at pobox.com
Sun Jul 8 10:59:50 EDT 2007
David <dwarnold45 at suddenlink.net> writes:
> Is there a pretty printing utility for Python, something like Tidy for
> HTML?
>
> That will change:
>
> xp=self.uleft[0]+percentx*(self.xwidth)
>
> To:
>
> xp = self.uleft[0] + percentx * (self.xwidth)
>
> And other formatting issues.
Googled and found these; no idea if they're any good (latter is
commercial):
http://cheeseshop.python.org/pypi/PythonTidy/1.11
http://python.softalizer.com/
See also:
http://svn.python.org/view/python/trunk/Tools/scripts/reindent.py?view=log
John
More information about the Python-list
mailing list