Re: [Tutor] visualizing code structure / flow charting

2007-11-12 Thread Kent Johnson
Timmie wrote: > Hello, > I am stepping forward into learning python and write my first programs now. > To facilitate my development I have a question: > > Is there a tool which I can run on my code and then get a flow chart from it > or > visualize its structure in another form? Here is another

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Timmie
> > Is there a tool which I can run on my code and then get a flow chart from it or > > visualize its structure in another form? > > http://pycallgraph.slowchop.com/ will show the call graph I think this is exactly what I was after. I still need to install Graphviz but from the homepage it seems

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Dave Kuhlman
On Tue, Nov 06, 2007 at 07:36:51AM -0500, Kent Johnson wrote: > Timmie wrote: > > Hello, > > I am stepping forward into learning python and write my first programs now. > > To facilitate my development I have a question: > > > > Is there a tool which I can run on my code and then get a flow chart

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Scott SA
On 11/6/07, Wesley Brooks ([EMAIL PROTECTED]) wrote: >Taking both one step further if you can extract all the __doc__ >strings for all the objects listed from the dir of an object: > >a = 'a random string' >for i in dir(a): >command = "print str." + i + ".__doc__" >exec(command) > >This wi

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Wesley Brooks
Following on from the comments above two things I've found really helpful are the __doc__ strings and the exec command. for example: >>> a = 'a random string' >>> dir(a) ['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', '__ge

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread bhaaluu
Greetings, On Nov 6, 2007 4:15 AM, Timmie <[EMAIL PROTECTED]> wrote: > Hello, > I am stepping forward into learning python and write my first programs now. > To facilitate my development I have a question: > > Is there a tool which I can run on my code and then get a flow chart from it > or > vis

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Kent Johnson
Timmie wrote: > Hello, > I am stepping forward into learning python and write my first programs now. > To facilitate my development I have a question: > > Is there a tool which I can run on my code and then get a flow chart from it > or > visualize its structure in another form? http://pycallgra

[Tutor] visualizing code structure / flow charting

2007-11-06 Thread Timmie
Hello, I am stepping forward into learning python and write my first programs now. To facilitate my development I have a question: Is there a tool which I can run on my code and then get a flow chart from it or visualize its structure in another form? There was a discussion about that soem time