] > Re: [Python-projects] pylint: Warning about relative imports (Logilab.org)

Email Re: [Python-projects] pylint: Warning about relative imports

from
Gustavo J. A. M. Carneiro <gjc at inescporto dot pt>
subject
Re: [Python-projects] pylint: Warning about relative imports
date
2005/10/19 22:31
On Wed, 2005-10-19 at 21:21 +0200, Nicolas Chauvat wrote:
> On Wed, Oct 19, 2005 at 04:58:53PM +0100, Gustavo J. A. M. Carneiro wrote:
> >   Hello,
> > 
> >   I'm getting really tired of seeing warnings like this:
> > 
> > /mnt/labipsrc/gjc/qosal.src/discovery.py:3: [W] Relative import
> > 'protocol'
> > 
> >   As far as I know, there is no implementation of relative/absolute
> > imports in Python (I forget the PEP number).  The PEP was accepted by
> > the BDFL, but no one implemented it in Python/C.  Therefore, why is
> > pylint warning about something that is impossible to fix?  How can I
> > make it shut up?

> There are many solutions to your problem:

> 1. do not use pylint. it will stop bothering you.

> 2. write your own pylint tool that will do exactly what you want.


> 3. read the documentation: --disable-msg=W0403  

  Thanks!
  

> And remember that what pylint is not citing the law, it is only trying
> to help finding potential problems with your code AND it is entirely
> configurable.

  I don't mean to be offensive to the pylint developers, but I'm baffled
by excessive zealous of pylint.  It makes no sense to warn about
something that absolutely cannot be done any other way.  Anyway, sorry,
but it wasn't clear to me how to disable this; that's why I asked.

  One other thing that I don't understand is when pylint warns about
calling a function with keyword arguments, like func(foo=bar).  But now
I can't reproduce the problem anymore.. maybe it was in an older version
of pylint.

  Regards.

-- 
Gustavo J. A. M. Carneiro
<gjc@inescporto.pt> <gustavo@users.sourceforge.net>
The universe is always one step beyond logic

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


is a reply to
has reply