On Friday 02 April 2010 02:48:16 Aaron Rivacoba wrote:
> In regards to the tutorial doc at
> http://www.logilab.org/card/pylint_tutorial, I have the following question:
> 
> Just curious regarding the C0103 messages. It seems to me that shift,
> choice, etc. are variables, not constants, and so, according to PEP can
> be any of a different set of naming styles; only constants should be
> capitalized, which would make the rule correct. Is there any reason for
> pylint for not use the variable-rgx for these variables?

The rule is that "variables" defined at module top level are expected to be 
constants, not variables. 

-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to