[Python-projects] Is Pylint check variables outside of functions?

Sylvain Thénault sylvain.thenault at logilab.fr
Sun May 7 00:41:44 CEST 2006


On Friday 28 April à 09:32, Pierre_Rouleau at ImpathNetworks.com wrote:
> Bonjour Sylvain,
> 
> Is Pylint (the latest) supposed to report that invalid names of variables
> declared outside functions ?  I just noticed that it was not reporting variable
> names that did not comply with ('variable-rgx', 'inlinevar-rgx', 'good-names')
> specs when those variables are outside of functions/method/class definitions
> like code that would appear after the "if __name__ == "_main__": " clause.

that's a bug, I've added it to our tracker. 

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list