What tools are used for Phyton code refactoring?

Posted on 2012-08-13
Last Modified: 2014-12-08
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...
Question by:B1RU
    LVL 28

    Accepted Solution

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

    The "Bicycle Repair Man" ( 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 (, namely when your project uses unit testing during the development.

    Anyway, you will need to check and visualize your code. Probably the pylint ( and the suite mentioned in the "see also" at the page) can help you.

    There also is Doxygen ( 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++.
    LVL 9

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Less strange, but still introduction This introduction was added (1st August, 2011) to reflect some reactions.  Firstly, the term basics in the title of the article...  As any other word, it is a symbol with meaning attached to the word by some a…
    Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as “COURSE” followed by equals sign and finally enclosed …
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now