Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16443
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'think,': 0.05; 'names.': 0.07; 'nicely': 0.09; 'subject:python': 0.10; 'ast,': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'cc:addr:python-list': 0.16; 'cc:no real name:2**0': 0.20; 'trying': 0.21; 'header:In- Reply-To:1': 0.22; 'module,': 0.23; 'cc:2**0': 0.24; 'code,': 0.27; 'cc:addr:python.org': 0.29; 'example': 0.29; "didn't": 0.31; 'quite': 0.32; 'list': 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'too': 0.34; 'suggestions': 0.35; 'similar': 0.36; 'things,': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'another': 0.37; 'received:10.0.0': 0.38; 'received:209.85': 0.38; "it's": 0.40; 'received:209': 0.40; 'more': 0.61; 'kind': 0.61; 'visitors': 0.77; 'visitor': 0.91 |
| 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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4ckRgI8SmthbmkFGY/piyGaLVpVb+Yt23vyy/oojbJ4=; b=w1eEVYax3DtWiyc/eSHuwyPfLo2SNjAIemtu/AYUHTBaFpSt6tmQ7VQ29xGHcOyhsW 0r/zGU3Zw7nYLQmCvonWkjO0dOS0QwiVGwX5rCQd+xQ33qV4zG7ppBmcoPtBeVG4o6HF TMMt/75Kr2gN3lsWGLgVXzOu5KMrt1zu9caR4= |
| Date | Wed, 30 Nov 2011 18:03:35 +0000 |
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111108 Thunderbird/8.0 |
| MIME-Version | 1.0 |
| To | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
| Subject | Re: python 2.5 and ast |
| References | <4ED37475.3050709@gmail.com> <jb0pnp$a7i$1@dough.gmane.org> <4ED457C5.2020407@davea.name> <mailman.3121.1322560291.27778.python-list@python.org> <4ed4c2ce$0$29988$c3e8da3$5496439d@news.astraweb.com> <4ED4E35E.6090405@gmail.com> |
| In-Reply-To | <4ED4E35E.6090405@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Cc | python-list@python.org |
| 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.3166.1322676221.27778.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1322676222 news.xs4all.nl 6965 [2001:888:2000:d::a6]:55875 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:16443 |
Show key headers only | View raw
Another thing about the AST, I am having fun trying to for example list out all the unused imports. I have already a visitor which works quite nicely I think, but now I would like to get a way to find all the unused imports, so I need more visitors that find out all the used names. I didn't find too much documentation about these kind of things, so any suggestions on how to approach? Pylint and snakefood have similar code, but they use the old "compiler" module, so it's not really helpful.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-29 09:51 +0000
Re: python 2.5 and ast Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-29 11:32 +0000
Re: python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-29 13:51 +0000
Re: python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-30 18:03 +0000
Re: python 2.5 and ast DevPlayer <devplayer@gmail.com> - 2011-12-02 07:18 -0800
Re: python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-02 16:54 +0000
Re: python 2.5 and ast Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-02 17:01 +0000
csiph-web