Pychecker

skip at pobox.com skip at pobox.com
Fri Jun 9 14:59:39 EDT 2006


    Rick> I think you're asking a lot from pychecker.

    Rick> kop = 1
    Rick> koi = 2

    Rick> if True:
    Rick>       koo = 3

    Rick> What would you like pychecker to report?

I thing the OP was hoping for a "not used" error, but it can only reasonably
do that within a function, which it does do:

    pyc.py:2: Local variable (kop) not used
    pyc.py:3: Local variable (koi) not used
    pyc.py:6: Local variable (koo) not used

At the module level it doesn't know that the suspect object isn't accessed
from another module.

Skip



More information about the Python-list mailing list