Hi, On Sun, Apr 14, 2013 at 8:13 AM, Evgeny Startsev <[email protected]> wrote: > I am interesting in control-flow graph generation for python projects using > python. I read http://doc.pypy.org/en/latest/translation.html#flow-model and > studied how to investigate cfg for function. > Is there any way to generate cfg for method using pypy?
In rpython/bin/translatorshell.py, instead of calling Translation(func, [int]) you call Translation(Class.method.im_func, [Class, int]). This comes with the usual warnings: PyPy doesn't contain any tool that gives you the cfg of a Python function or method, but only contains tools that give the cfg of *RPython* function or methods. A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
