Editing Python source as XML?

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Mar 2 17:10:11 CET 2001


Steven Haryanto <steven at haryan.to> writes:

> A recent experience of having to modify a long C source file has
> led me to wonder whether there are any tool/effort towards editing
> Python source code as XML or other form of structured document.

Not sure *why* you'd want to do that, but it is certainly possible to
convert any script automatically to an XML document with the help of
the parser module.

> What I would like is an editor that presents the source file as a
> tree outline, where I can collapse selected class or function
> definition body, certain long if's/for's, some section of code,
> view/hide the asserts, etc. 

PythonWin, and the Emacs Python mode, both can do that today.

Regards,
Martin



More information about the Python-list mailing list