pylint, was Re: pygame - importing GL - very bad...
__peter__ at web.de
Wed Jan 2 13:07:36 CET 2013
> On 01/01/2013 01:56 PM, Peter Otten wrote:
>> from module import * # pylint: disable=W0622
> Oh, I just learned something new now... How come I cannot type "#pylint:
> enable=W0622" in the line just below the import ?
With what intended effect?
> Another thing is that I don't understand this warning:
> Invalid name "original_format" (should match (([A-Z_][A-Z0-9_]*)|
> > (__.*__))$)
> I get it everywhere... I don't understand how it wants me to label my
> variables... Maybe I should disable this warning to get rid of it...
pylint wants global names to be uppercase (what PEP 8 recommends for
constants) or "special" (two leading and two trailing underscores):
THATS_OK = 42
__thats_ok_too__ = object()
but_thats_not = "spam"
More information about the Python-list