2

Possible Duplicate:
How can you find unused functions in Python code?

I'm working on a Pyramid project many files and functions, and in an effort to clean things up I would like to know which functions are never called. Is there a way to figure this out?

Thanks

Community
  • 1
  • 1
nay
  • 864
  • 2
  • 8
  • 12
  • Thankx, I'll try pylint to see how it works – nay Nov 15 '12 at 16:39
  • And, specific to the Pyramid project; pyramid uses unit tests together with `coverage` to ensure that the codebase is fully tested and that everything in the codebase has a function. – Martijn Pieters Nov 15 '12 at 16:41

1 Answers1

1

You could use static analysers, such as pychecker.

kaspersky
  • 3,959
  • 4
  • 33
  • 50