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


Groups > comp.lang.python > #92594 > unrolled thread

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

Started by"C.D. Reimer" <chris@cdreimer.com>
First post2015-06-13 12:10 -0700
Last post2015-06-13 12:10 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

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

From"C.D. Reimer" <chris@cdreimer.com>
Date2015-06-13 12:10 -0700
SubjectIs there a utility to tally function calls from other files?
Message-ID<mailman.459.1434222613.13271.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web