Python Refactoring Browser

Bernard Yue bernie at 3captus.com
Tue Mar 5 02:44:26 EST 2002


Hi Mathew,

Mathew Yeates wrote:

> I am in desperate need of a refactoring browser for python. I've written a
> fairly large program and now am trying to clean it up. I change a member
> variable and WHAM I break my code in 95 different locations.
>
> I'm aware of Bicycle Repair Man http://bicyclerepair.sourceforge.net/,
> which, when better developed will be exactly what I want. There is also
> PyIDEA http://sourceforge.net/projects/pyidea/, but it's just starting up.
> And Boa  ( http://boa-constructor.sourceforge.net/ ) doesnt seem designed
> for refactoring although I have been using its automatic UML generation to
> give me ideas on how to reorganize classes.
>
> When I'm programming in C, I have cscope which I use with a VIM interface.
> Its not much but at least I can locate variables easily.
>
> Has anyone else refactored a large Python program? How did you do it?
>

I used pyunit.  It is now a standard library in python (check module
unittest).  I know Zope use it too.

Bernie


>
> Mathew

--
There are three schools of magic.  One:  State a tautology, then ring
the changes on its corollaries; that's philosophy.  Two:  Record many
facts.  Try to find a pattern.  Then make a wrong guess at the next
fact; that's science.  Three:  Be aware that you live in a malevolent
Universe controlled by Murphy's Law, sometimes offset by Brewster's
Factor; that's engineering.
                -- Robert A. Heinlein




More information about the Python-list mailing list