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


Groups > comp.lang.python > #22404

Re: CFG for python

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: CFG for python
Date 2012-03-31 01:56 +0100
References <CAH0SsdLsMvC1ayfHqHgcaFRzT29gwJnbpzfKN_diCCv4=Aq1Zg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1164.1333155438.3037.python-list@python.org> (permalink)

Show all headers | View raw


On 29/03/2012 06:44, J. Mwebaze wrote:
> Anyone knows how to create control-flow-graph for python.. After searching
> around, i found  this article,
> http://www.python.org/dev/peps/pep-0339/#ast-to-cfg-to-bytecode  and also a
> reference to http://doc.pypy.org/en/latest/objspace.html#the-flow-model
>
> However, i stil cant figure out what how to create the CFG from the
> two references.
> Regards
>

Taking a look at this may help you get going 
http://alexleone.blogspot.co.uk/2010/01/python-ast-pretty-printer.html

-- 
Cheers.

Mark Lawrence.

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


Thread

Re: CFG for python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-03-31 01:56 +0100

csiph-web