Managing import statements

Jean-Paul Calderone exarkun at
Sun Dec 11 05:38:27 CET 2005

On Sat, 10 Dec 2005 11:54:47 -0700, Shane Hathaway <shane at> wrote:
>Jean-Paul Calderone wrote:
>> On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway <shane at> wrote:
>>>How about PyLint / PyChecker?  Can I configure one of them to tell me
>>>only about missing / extra imports?  Last time I used one of those
>>>tools, it spewed excessively pedantic warnings.  Should I reconsider?
>> I use pyflakes for this: <>.  The *only* things it tells me about are modules that are imported but never used and names that are used but not defined.  It's false positive rate is something like 1 in 10,000.
>That's definitely a good lead.  Thanks.
>> This is something I've long wanted to add to pyflakes (or as another feature of pyflakes/emacs integration).
>Is there a community around pyflakes?  If I wanted to contribute to it,
>could I?

A bit of one.  Things are pretty quiet (since pyflakes does pretty 
much everything it set out to do, and all the bugs seem to have been 
fixed (holy crap I'm going to regret saying that)), but if you mail
divmod-dev at with questions/comments/patches, or open a 
ticket in the tracker for a fix or enhancement, someone will 
definitely pay attention.


More information about the Python-list mailing list