List of functions called in Python source files?

William Dandreta wjdandreta at worldnet.att.net
Fri Jun 16 15:52:13 EDT 2000


Hi Matt,

I solved the problem by taking every function in the .map file and searching
through the souce files to see if it was there. The Python script I wrote to
do it took 15 to 20 mins but it worked. Thanks for your suggestion.

Bill
Matthew Schinckel wrote in message <20000616192134.375851 at 210.9.20.69>...
>"William Dandreta" <wjdandreta at worldnet.att.net> wrote:
>> I need to get a list of the external (ones not in the same source
>> file) functions called in each Python source file. Does anyone know an
>> easy way to do this?
>>
>> Bill
>
>You can try using the Python profiler - but it will give you all of the
>functions, from this file and from any imports.
>
>I have only used to it compare speeds, but it seems flexible enough to
>be able to use it to list functions (and possibly where they came from).
>
>Matt.





More information about the Python-list mailing list