Note that this isn't peculiar to the say module.  You can generate
these false positives with dict format expansions in Python without
using an external module.  For instance:

x = 4
print("%(x)s" % locals())

Pylint can't tell that x is used because it's use is buried in the
format string. I have stumbled on this before and ignored it, but I
think it would be a useful improvement.

Skip
_______________________________________________
code-quality mailing list
code-quality@python.org
http://mail.python.org/mailman/listinfo/code-quality

Reply via email to