[Tutor] Doubts about Pylint

Dick Moores rdm at rcblue.com
Thu Apr 10 07:45:47 CEST 2008

At 03:15 PM 4/9/2008, Alan Gauld wrote:

>"Dick Moores" <rdm at rcblue.com> wrote
> > Since when is 'az' a bad variable name? And 'AZ' is OK?
>When it is a constant.
>pyLint sees that you are assigning a numeric literal and
>so thinks that this may be a definition of a constant value.
>If you did something like
>A = 8
>az = A
>It may well be happy since A is a constant and the variable
>is being assigned the constant rather than the literal.

Thanks, Alan, but I tried your

A = 8
az = A

and got the same complaint about az.


UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/  

More information about the Tutor mailing list