[Python-projects] Expected behaviour of W403: relative import?

Nicolas Chauvat nicolas.chauvat at logilab.fr
Sun Jun 15 14:46:27 CEST 2008


On Sun, Jun 15, 2008 at 08:28:51AM -0400, Toshio Kuratomi wrote:
> I still receive W0403.  Is this expected behaviour?  I want to catch  
> relative imports that are ambiguous but I thought that the "." syntax  
> was created to remove the ambiguity.

That's a perfectly valid request, but pylint is not aware of "." and
".." imports yet. See ticket: https://www.logilab.net/elo/ticket/5010

This should be fixed with pylint 0.15 to be released in July. Of
course if someone contributes a fix before that, it will be made
available thru the code repository.

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  


More information about the Python-Projects mailing list