Comment 5 for bug 1507216

Revision history for this message
Phil Frost (bitglue) wrote :

Well, pyflakes as a matter of principle does not opine on matters of style. There are certainly uses of locals() which are valid, useful, and not horrible to read, like:

    "%(local)s %(variable)s %(names)s" % locals()

The closest precedent for complaining about locals() might be that pyflakes complains about "import *", but I would say that's not quite the same. locals() has no side effects and depends only on the local scope. "import *" has side effects that are not only implicit, but dependent on other files.