How to find unused methods

M

Martin Drautzburg

Is there an elegant way for finding unsent methods as in Smalltalk ?

I am aware of the fact that due to pythons dynamic typing, no tool in
the world can find ALL unsent methods (same in Smalltalk). But finding
the most obvious ones would already be of some help.
 
C

Christos TZOTZIOY Georgiou

Is there an elegant way for finding unsent methods as in Smalltalk ?

I am aware of the fact that due to pythons dynamic typing, no tool in
the world can find ALL unsent methods (same in Smalltalk). But finding
the most obvious ones would already be of some help.

If you don't mind *running* your program, profile it. Or wrap all your
methods in call counting ones. I think you will find lots of recipes
how to automagically do the latter, especially in the decorator section
of your favourite site :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top