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


Groups > comp.lang.python > #16443

Re: python 2.5 and ast

Date 2011-11-30 18:03 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
Subject Re: python 2.5 and ast
References (1 earlier) <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>
Newsgroups comp.lang.python
Message-ID <mailman.3166.1322676221.27778.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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