[Python-3000] Refactoring tool available (work in progress)

José Fonseca j_r_fonseca at yahoo.co.uk
Mon Dec 25 11:43:21 CET 2006


On Thu, 14 Dec 2006 21:51:25 -0800, Guido van Rossum wrote:

> In the sandbox I've been working on a refactoring tool, which could
> form the basis for a Python 2.x -> 3.0 conversion tool.  I'd like to
> invite folks here to give it a try and give me a hand. It certainly
> needs more work, but I think that the basic infrastructure is sound.
> Check out sandbox/2to3/:
> http://svn.python.org/view/sandbox/trunk/2to3/.
> This message is to invite feedback, and to encourage contributions. It
> would be great if people tried their hands at writing new
> transformations!
> A brief description of how it works:
> [...]
> Finally, I have a dream: a GUI that will let you do this
> interactively, sort of like query-replace in Emacs. But this message
> is already too long, so I'll stop for now. Thanks for reading this
> far. :-)

FWIW, I've written an interactive (GUI) refactoring tool in Python. The
subject language is not Python but C, and the purpose is to reverse
engineer C programs. A video of the tool running is available
at http://paginas.fe.up.pt/~mei04010/viva.avi . See
http://paginas.fe.up.pt/~mei04010/idc/ for more

Internally the program is also stored as an AST (there is no
means no preserve white-space yet), and the refactorings are
implemented in a transformation language inspired on the Stratego language
( http://www.stratego.org/ ).


José Fonseca

More information about the Python-3000 mailing list