CFG for python

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Mar 31 02:56:31 CEST 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