Python Source Code Beautifier

Neil Hodgson nyamatongwe+thunder at gmail.com
Tue Feb 27 06:55:41 EST 2007


Franz Steinhaeusler:

> Hello, I did not find any reasonable pyhton source code beautifier
> program (preferable gui).
> ...
> convert:
> ...
> from "is" to "==" and "is not" to "!=" (ok a find replace could do that
> easily also), but in a program that would be more comfortable.

   That's an unsafe conversion. I don't think it is possible for a
reasonable program to determine statically that "is" is equivalent to
"==" except for trivial pieces of code.

   Neil



More information about the Python-list mailing list