Thx,
Skip
I haven't used it myself, but pychecker
(http://pychecker.sourceforge.net/) is supposed to be able to perform
such stunts. From the page: "Types of problems that can be found
include: Unused globals and locals (module or variable)"
HTH,
~Simon
Thanks. I've used both pylint and pychecker. I'm not aware that either one
can do what I want. Here's a trivial example:
Module a.py:
RED = "red"
BLUE = "blue"
Module b.py:
import a
print a.RED
Considering modules a and b as a whole program, a.BLUE is unused anywhere in
the program.
Skip