Program to backtrack function calls in source code?

Colin J. Williams cjw at sympatico.ca
Sat Sep 2 19:33:36 EDT 2006


Yu-Xi Lim wrote:
> forum at anton.e4ward.com wrote:
>> many mistakes in programming arise when one changes the code and
>> forgets to adjustment somewhere where it is used. Is there a program
>> that can extract all place in the source code where a variable is
>> accessed or a function called?
>> For example in the simplest case I want to change the name of a
>> function everywhere in the source...
> 
> The process you describe (renaming a function or variable) is part of 
> refactoring. Many good IDEs provide extensive automated support for 
> this, though this functionality seems less common in Python IDEs, likely 
> due to Python's duck typing.
> 
> Bicycle Repair Man supports the ability to rename functions and 
> variables at multiple locations, along with other common refactoring 
> operations. Various Python IDEs and editors can be configured to use 
> BRM. I personally prefer Eclipse, a Java-based IDE but with good Python 
> support via PyDev.

PyScripter, which is Windows based,  provides the ability to link back 
to the definition of some identifier or to get function references. 
http://mail.python.org/pipermail/python-announce-list/2006-March/004782.html

Colin W.




More information about the Python-list mailing list