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


Groups > comp.lang.python > #53661

Re: Find out where a class is used throughout a program.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!roy
From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Find out where a class is used throughout a program.
Date Wed, 04 Sep 2013 21:48:00 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Lines 11
Message-ID <roy-951FCF.21480004092013@news.panix.com> (permalink)
References <9d290db6-b9cb-41af-8107-e7f27d2da6d0@googlegroups.com>
NNTP-Posting-Host localhost
X-Trace reader1.panix.com 1378345680 6333 127.0.0.1 (5 Sep 2013 01:48:00 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 5 Sep 2013 01:48:00 +0000 (UTC)
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Xref csiph.com comp.lang.python:53661

Show key headers only | View raw


In article <9d290db6-b9cb-41af-8107-e7f27d2da6d0@googlegroups.com>,
 Azureaus <lo0446@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.

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


Thread

Find out where a class is used throughout a program. Azureaus <lo0446@my.bristol.ac.uk> - 2013-09-04 09:32 -0700
  Re: Find out where a class is used throughout a program. dieter <dieter@handshake.de> - 2013-09-04 22:08 +0200
    Re: Find out where a class is used throughout a program. Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-09-04 22:40 +0200
  Re: Find out where a class is used throughout a program. Terry Reedy <tjreedy@udel.edu> - 2013-09-04 17:36 -0400
  Re: Find out where a class is used throughout a program. alex23 <wuwei23@gmail.com> - 2013-09-05 10:11 +1000
  Re: Find out where a class is used throughout a program. Roy Smith <roy@panix.com> - 2013-09-04 21:48 -0400
  Re: Find out where a class is used throughout a program. Steven D'Aprano <steve@pearwood.info> - 2013-09-05 02:16 +0000
  Re: Find out where a class is used throughout a program. Dave Angel <davea@davea.name> - 2013-09-05 09:08 +0000
  Re: Find out where a class is used throughout a program. Azureaus <lo0446@my.bristol.ac.uk> - 2013-09-05 05:42 -0700
    Re: Find out where a class is used throughout a program. Chris Angelico <rosuav@gmail.com> - 2013-09-05 22:53 +1000

csiph-web