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

2013-09-05 Thread Chris Angelico
On Thu, Sep 5, 2013 at 10:42 PM, Azureaus wrote: > I think I'm going to be a regular here :) Glad to have you around! Interesting and thoughtful questions, as much as informative answers, are what make this list/group worth being in. I originally came to ask a question, hung around to answer a fe

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

2013-09-05 Thread Azureaus
On Wednesday, 4 September 2013 17:32:28 UTC+1, Azureaus wrote: > Hi All, > > I'm fairly new to Python so please forgive me If I sound confused or include > anything a bit irrelevant. I've had some great responses from this group > already though so thanks. > > > > I have a source file that i

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

2013-09-05 Thread Dave Angel
On 4/9/2013 12:32, Azureaus wrote: > Hi All, > I'm fairly new to Python so please forgive me If I sound confused or include > anything a bit irrelevant. I've had some great responses from this group > already though so thanks. > > I have a source file that is laid out roughly like > > class: > c

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

2013-09-04 Thread Steven D'Aprano
On Wed, 04 Sep 2013 09:32:28 -0700, Azureaus 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? I need to find out the way in which these classes > are being used and their ty

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

2013-09-04 Thread Roy Smith
In article <9d290db6-b9cb-41af-8107-e7f27d2da...@googlegroups.com>, Azureaus 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 $ find . -name "*.py" | xarg

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

2013-09-04 Thread alex23
On 5/09/2013 2:32 AM, Azureaus 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? One option is to produce call graphs of the running code: http://pycallgraph.slowchop.com/ --

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

2013-09-04 Thread Terry Reedy
On 9/4/2013 4:08 PM, dieter wrote: Azureaus writes: ... is there a way of finding out / visualising where a particular class is called/used throughout a program? I do not know a simple and reliable way. When I face such a situation, I use standard operating system utilities (e.g. "grep -r"

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

2013-09-04 Thread Irmen de Jong
On 4-9-2013 22:08, dieter wrote: > Azureaus writes: >> ... >> is there a way of finding out / visualising where a particular class is >> called/used throughout a program? > > I do not know a simple and reliable way. Not 100% reliable, but arguably easier than reverting to simple text search to

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

2013-09-04 Thread dieter
Azureaus writes: > ... > is there a way of finding out / visualising where a particular class is > called/used throughout a program? I do not know a simple and reliable way. When I face such a situation, I use standard operating system utilities (e.g. "grep -r" under *nix) to search for occurre

Find out where a class is used throughout a program.

2013-09-04 Thread Azureaus
Hi All, I'm fairly new to Python so please forgive me If I sound confused or include anything a bit irrelevant. I've had some great responses from this group already though so thanks. I have a source file that is laid out roughly like class: class methods methods init statement class: method