Re: Automatically organize module imports

2007-10-17 Thread Andrew Durdin
On 10/15/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > Pyflakes will tell you which imports aren't being used (among other > things). I don't know if an existing tool which will automatically > rewrite your source, though. I'll second that recommendation of Pyflakes -- as the interpreter

Re: Automatically organize module imports

2007-10-16 Thread Alexandre Badez
On Oct 16, 12:08 pm, Thomas Wittek <[EMAIL PROTECTED]> wrote: > Great. It has a warning about unused imports. Perfect. > (Though, it was a bit tricky to install as easy_install didn't get the > dependencies right on Win XP) > > Thank you! > -- > Thomas Wittek > Web:http://gedankenkonstrukt.de/ > Ja

Re: Automatically organize module imports

2007-10-16 Thread Thomas Wittek
Alexandre Badez: > If you're using Eclipse + PyDev, I strongly recommend you to give a > try to PyLint ("http://www.logilab.org/857";). Great. It has a warning about unused imports. Perfect. (Though, it was a bit tricky to install as easy_install didn't get the dependencies right on Win XP) Thank

Re: Automatically organize module imports

2007-10-16 Thread Alexandre Badez
On Oct 16, 8:52 am, Thomas Wittek <[EMAIL PROTECTED]> wrote: > Jean-Paul Calderone: > > > On Mon, 15 Oct 2007 20:52:11 +0200, Thomas Wittek > > <[EMAIL PROTECTED]> wrote: > >> Is there a tool that can organize my import section? > > > Pyflakes will tell you which imports aren't being used (among ot

Re: Automatically organize module imports

2007-10-15 Thread Thomas Wittek
Jean-Paul Calderone: > On Mon, 15 Oct 2007 20:52:11 +0200, Thomas Wittek > <[EMAIL PROTECTED]> wrote: >> Is there a tool that can organize my import section? > > Pyflakes will tell you which imports aren't being used (among other > things). I don't know if an existing tool which will automaticall

Re: Automatically organize module imports

2007-10-15 Thread Jean-Paul Calderone
On Mon, 15 Oct 2007 20:52:11 +0200, Thomas Wittek <[EMAIL PROTECTED]> wrote: >Hi! > >Is there any possibility/tool to automatically organize the imports at >the beginning of a module? > >I don't mean automatic imports like autoimp does as I like seeing where >my objects/functions really come from.

Automatically organize module imports

2007-10-15 Thread Thomas Wittek
Hi! Is there any possibility/tool to automatically organize the imports at the beginning of a module? I don't mean automatic imports like autoimp does as I like seeing where my objects/functions really come from. For the same reason I don't like "from foo import *". The downside is that you have