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


Groups > comp.lang.python > #22404

Re: CFG for python

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.051
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'url:peps': 0.09; 'subject:python': 0.12; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'references.': 0.16; 'wrote:': 0.21; 'url:dev': 0.22; 'header:In-Reply-To:1': 0.22; 'header:User- Agent:1': 0.23; 'figure': 0.27; 'anyone': 0.30; 'url:en': 0.33; 'url:python': 0.34; 'two': 0.35; 'knows': 0.35; 'header:X -Complaints-To:1': 0.36; 'reference': 0.36; 'url:org': 0.36; 'received:org': 0.38; 'to:addr:python-list': 0.39; 'how': 0.40; 'to:addr:python.org': 0.40; 'url:blogspot': 0.62; 'taking': 0.65; 'url:co': 0.68; 'around,': 0.84; 'article,': 0.84; 'received:as13285.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: CFG for python
Date Sat, 31 Mar 2012 01:56:31 +0100
References <CAH0SsdLsMvC1ayfHqHgcaFRzT29gwJnbpzfKN_diCCv4=Aq1Zg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-23-244.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
In-Reply-To <CAH0SsdLsMvC1ayfHqHgcaFRzT29gwJnbpzfKN_diCCv4=Aq1Zg@mail.gmail.com>
X-Antivirus avast! (VPS 120330-1, 30/03/2012), Outbound message
X-Antivirus-Status Clean
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1164.1333155438.3037.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333155438 news.xs4all.nl 6896 [2001:888:2000:d::a6]:35542
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22404

Show key headers only | 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