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


Groups > comp.lang.python > #16348

Re: python 2.5 and ast

From Terry Reedy <tjreedy@udel.edu>
Subject Re: python 2.5 and ast
Date 2011-11-28 15:08 -0500
References <4ED37475.3050709@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3104.1322510919.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 11/28/2011 6:45 AM, Andrea Crotti wrote:
> 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

That is the standard way of backporting features of later versions.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python 2.5 and ast Terry Reedy <tjreedy@udel.edu> - 2011-11-28 15:08 -0500

csiph-web