CFG for python
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Mar 30 20:56:31 EDT 2012
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.
More information about the Python-list
mailing list