On 21 mars 09:45, James Lingard wrote:
> When run on the following file:
> 
>     y = None
>     def f():
>         global y
>         from x import y
> 
> pylint incorrectly issues the following three warnings:
> 
> ************* Module test
> W0621:  4:f: Redefining name 'y' from outer scope (line 1)
> W0602:  3:f: Using global for 'y' but no assignment is done
> W0612:  4:f: Unused variable 'y'

nice :) Actually all that should be under a ticket "import not recognized as an 
assigment".

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to