Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16567
| 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 | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'happily': 0.07; 'python': 0.08; 'scripts': 0.09; 'garbage': 0.09; 'subject:python': 0.10; 'am,': 0.12; 'ast': 0.16; 'nodes': 0.16; 'wrote:': 0.18; 'yet.': 0.18; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'tree.': 0.23; 'way?': 0.23; "python's": 0.24; 'suspect': 0.24; 'tree': 0.25; 'code': 0.25; 'module': 0.26; "i'm": 0.26; 'code,': 0.27; 'message-id:@mail.gmail.com': 0.28; 'array': 0.30; 'finite': 0.30; 'hash': 0.30; 'indexed': 0.30; 'received:mail-bw0-f46.google.com': 0.30; 'source': 0.31; 'does': 0.32; 'done,': 0.32; 'list': 0.32; 'received:209.85.214': 0.32; 'sort': 0.33; 'there': 0.33; 'fri,': 0.34; 'to:addr:python-list': 0.34; 'starting': 0.36; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'enough': 0.38; 'using': 0.38; 'monday,': 0.38; 'replace': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'tasks': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'world': 0.62; 'collection': 0.69; 'andrea': 0.84; 'mechanism.': 0.84; 'moment)': 0.84; '\xa0of': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=hBORBtV8R05RBIJeHJyVU67YuDYDQOhgqRg3UHbFvdw=; b=F0QYe6JZRs2kTrBgsw0mSYHsxkpfGjIVRbodDtdg8+tfQIcTy02pWCZOBcMqHVo2SO Ey82poES1mkAxrTg/kC653diiU16h+uDYgxgBnLCRWElV8AAti7KGy/oj93g98Zu95dG dQxZyPSB+dj3btexHaiHqj2eOuE75WkPNlxlY= |
| MIME-Version | 1.0 |
| In-Reply-To | <6866657.516.1322850490609.JavaMail.geo-discussion-forums@prjr26> |
| References | <mailman.3088.1322480760.27778.python-list@python.org> <6866657.516.1322850490609.JavaMail.geo-discussion-forums@prjr26> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Fri, 2 Dec 2011 11:43:56 -0700 |
| Subject | Re: python 2.5 and ast |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| 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.3236.1322851469.27778.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1322851469 news.xs4all.nl 6872 [2001:888:2000:d::a6]:46672 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:16567 |
Show key headers only | View raw
On Fri, Dec 2, 2011 at 11:28 AM, 88888 Dihedral <dihedral88888@googlemail.com> wrote: > On Monday, November 28, 2011 7:45:57 PM UTC+8, 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 >> or is there a smarter way? >> (I don't even need all of them, just "parse" and NodeVisitor at the moment) > > Sounds like a hash for nodes and a hash for a tree. > A hash can replace a tree of finite number of nodes. > An array or list is enough to replace a tree of finite number of nodes. > > The heap sort ordering is simple but illustrative . > > After all the tasks of the tree are done, the hash of the tree > will be deleted by Python's garbage collection mechanism. > > A hash can replace an indexed array with (k,v) pairs for k=0,1,2,3...n in > a trivial way. What in the world does any of this have to do with using the ast module in Python 2.5? I am starting to suspect that "88888 Dihedral" may be a bot.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-28 11:45 +0000
Re: python 2.5 and ast 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 10:28 -0800
Re: python 2.5 and ast Ian Kelly <ian.g.kelly@gmail.com> - 2011-12-02 11:43 -0700
Re: python 2.5 and ast 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 10:28 -0800
csiph-web