Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'happily': 0.07; 'python': 0.08; 'scripts': 0.09; 'subject:python': 0.10; 'ast': 0.16; 'yet.': 0.18; 'received:209.85.212.46': 0.23; 'received:mail- vw0-f46.google.com': 0.23; 'way?': 0.23; 'code': 0.25; 'module': 0.26; "i'm": 0.26; 'code,': 0.27; 'source': 0.31; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'there': 0.33; 'to:addr:python-list': 0.34; 'received:209.85.212': 0.34; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'received:10.0.0': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'moment)': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=NUlfK7+5pZqEf3q4hb06hkQtkyHiamsl1URPkhUWcH0=; b=DFMa7O4H/BmFVfNB9N8L2NDNPLVruyVUuylpQKx159OfgroLkHmUkzYfjAJgWmGMGE q2VQBAfJtG+8zIcUcW8lOecH/ci7Kmad/PsCWGvOTHePuTljEDP01lbN0nY2YgGozoq4 MN1HZUH7lRgL85SRX22AZMZpSLTDvalcZlq7c= Date: Mon, 28 Nov 2011 11:45:57 +0000 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: python 2.5 and ast Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322480760 news.xs4all.nl 6951 [2001:888:2000:d::a6]:48862 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16319 I'm happily using the ast module to analyze some code, but my scripts need also to run unfortunately on python 2.5 The _ast was there already, but the ast helpers not yet. Is it ok if I just copy over the source from the ast helpers in my code base or is there a smarter way? (I don't even need all of them, just "parse" and NodeVisitor at the moment)