Is there a utility to tally function calls from other files?
C.D. Reimer
chris at cdreimer.com
Sat Jun 13 15:10:02 EDT 2015
Greetings,
I'm converting 101 BASIC games from an old book
(http://www.atariarchives.org/basicgames/) into Python scripts. After a
dozen conversions, I've created a helper file for common functions
(i.e., pick_card(), replay_game() and roll_dice()). The functions for
card and dice games are obvious candidates for the helper file, but
other functions that might be one offs that shouldn't be included.
Is there utility that will take the function names from the helper file
and scan the other files to tally up how many times a particular
function got called?
Or do I need to write a script?
Thanks,
Chris R.
More information about the Python-list
mailing list