We help IT Professionals succeed at work.

What tools are used for Phyton code refactoring?

B1RU asked
Our website is written on Phyton and before we start refactoring, I would like to make sure that we use optimal tools. We need to verifies which lines of code is dead and not used anymore and if there is any piece of code which generates output which is not used by any further process...
Watch Question

It depends on the tools that you use now and on the principles of the work in your team.

The "Bicycle Repair Man" (http://c2.com/cgi/wiki?BicycleRepairMan) is often mentioned (add on to Emacs, vim, IDLE, ...?)

When refactoring, it is always better when your project follows the principles of the Agile software development (http://en.wikipedia.org/wiki/Agile_software_development), namely when your project uses unit testing during the development.

Anyway, you will need to check and visualize your code. Probably the pylint (http://www.logilab.org/project/pylint and the suite mentioned in the "see also" at the page) can help you.

There also is Doxygen (http://www.doxygen.org/) that could help you to document and visualize your project. However, Python is one of the languages added to the supported ones. It was primarily designed for C++.