[code-quality] Warn on list comprehension variables used outside list comprehensions?
Skip Montanaro
skip.montanaro at gmail.com
Wed Nov 26 17:59:01 CET 2014
On Wed, Nov 26, 2014 at 10:51 AM, Keith Derrick <keith.derrick at lge.com>
wrote:
> But it seems to be confused by the second case, flagging "y" as an
> invalid variable-name at the assignment point for both versions.
>
I think that's just because pylint, by default, doesn't like variable names
with fewer than three characters. I think single-character variable names
have their uses, and suppress that warning in my pylintrc file.
Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20141126/fffa8672/attachment.html>
More information about the code-quality
mailing list