A static pychecker?

Jean-Paul Calderone exarkun at divmod.com
Fri Sep 8 15:15:53 CEST 2006

On Fri, 8 Sep 2006 08:00:25 -0500, "Edward K. Ream" <edreamleo at charter.net> wrote:
>I am wondering whether anyone knows of a static source-code analyzer for
>Python, kinda like a static pychecker.
>That is, instead of being a run-time tool as pychecker is, it would be a
>'compile-time' tool.  If I were writing such a thing it would use the ast
>returned from compiler.parse.  Unlike the inspect module, it would peruse
>the code looking for possible problems.

pyflakes is this.  It looks for significantly fewer problems than pychecker,
but it doesn't require modules to be importable to examine them and it is
significantly faster.


More information about the Python-list mailing list