Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92594

Is there a utility to tally function calls from other files?

Date 2015-06-13 12:10 -0700
From "C.D. Reimer" <chris@cdreimer.com>
Subject Is there a utility to tally function calls from other files?
Newsgroups comp.lang.python
Message-ID <mailman.459.1434222613.13271.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Is there a utility to tally function calls from other files? "C.D. Reimer" <chris@cdreimer.com> - 2015-06-13 12:10 -0700

csiph-web