Re: Managing import statements

2005-12-11 Thread Giovanni Bajo
Shane Hathaway wrote: > Here's the real problem: maintaining import statements when moving > sizable blocks of code between modules is hairy and error prone. You can also evaluate a solution like this: http://codespeak.net/py/current/doc/misc.html#the-py-std-hook -- Giovanni Bajo -- http://

Re: Managing import statements

2005-12-10 Thread Kent Johnson
Jean-Paul Calderone wrote: > On Sat, 10 Dec 2005 13:40:12 -0500, Kent Johnson <[EMAIL PROTECTED]> >> Do any of these tools (PyLint, PyChecker, pyflakes) work with Jython? To >> do so they would have to work with Python 2.1, primarily... > > Pyflakes will *check* Python 2.1, though you will have t

Re: Managing import statements

2005-12-10 Thread Jean-Paul Calderone
On Sat, 10 Dec 2005 11:54:47 -0700, Shane Hathaway <[EMAIL PROTECTED]> wrote: >Jean-Paul Calderone wrote: >> On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway <[EMAIL PROTECTED]> wrote: >>>How about PyLint / PyChecker? Can I configure one of them to tell me >>>only about missing / extra imports?

Re: Managing import statements

2005-12-10 Thread Jean-Paul Calderone
On Sat, 10 Dec 2005 13:40:12 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote: >Jean-Paul Calderone wrote: >> On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway >> <[EMAIL PROTECTED]> wrote: >>> How about PyLint / PyChecker? Can I configure one of them to tell me >>> only about missing / extra import

Re: Managing import statements

2005-12-10 Thread Shane Hathaway
Chris Mellon wrote: > On 12/10/05, Shane Hathaway <[EMAIL PROTECTED]> wrote: >>I'm surprised this problem isn't more familiar to the group. Perhaps >>some thought I was asking a newbie question. I'm definitely a newbie in >>the sum of human knowledge, but at least I've learned some tiny fraction

Re: Managing import statements

2005-12-10 Thread Shane Hathaway
Jean-Paul Calderone wrote: > On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway <[EMAIL PROTECTED]> 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.

Re: Managing import statements

2005-12-10 Thread Kent Johnson
Jean-Paul Calderone wrote: > On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway > <[EMAIL PROTECTED]> 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 warni

Re: Managing import statements

2005-12-10 Thread Jean-Paul Calderone
On Sat, 10 Dec 2005 02:21:39 -0700, Shane Hathaway <[EMAIL PROTECTED]> wrote: >Let's talk about the problem I really want help with. I brought up a >proposal earlier, but it was only half serious. I realize Python is too >sacred to accept such a heretical change. ;-) > >Here's the real problem: m

Re: Managing import statements

2005-12-10 Thread Chris Mellon
On 12/10/05, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Let's talk about the problem I really want help with. I brought up a > proposal earlier, but it was only half serious. I realize Python is too > sacred to accept such a heretical change. ;-) > > Here's the real problem: maintaining import s