from
Nicolas Chauvat <nicolas.chauvat at logilab dot fr>
to
Gustavo J. A. M. Carneiro <gjc at inescporto dot pt>
subject
Re: [Python-projects] pylint: Warning about relative imports
date
On Wed, Oct 19, 2005 at 04:58:53PM +0100, Gustavo J. A. M. Carneiro wrote:2005/10/19 21:21
> 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
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.
--
Nicolas Chauvat
logilab.fr - services en informatique avancée et gestion de connaissances
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
