Find out where a class is used throughout a program.

Roy Smith roy at panix.com
Wed Sep 4 21:48:00 EDT 2013


In article <9d290db6-b9cb-41af-8107-e7f27d2da6d0 at googlegroups.com>,
 Azureaus <lo0446 at my.bristol.ac.uk> wrote:

> To try and make this question as general as possible - is there a way of 
> finding out / visualising where a particular class is called/used throughout 
> a program? 

Sure.

$ cd <top of your source tree>
$ find . -name "*.py" | xargs grep MyClassName.



More information about the Python-list mailing list