[Python-projects] VariablesChecker._vars

skip at pobox.com skip at pobox.com
Wed Mar 26 01:49:31 CET 2008


I noticed in pylint's VariablesChecker.visit_function an empty dict is
appended to its _vars attribute:

    self._vars.append({})

but in its leave_function the first element is popped:

    self._vars.pop(0)

It seems like like it should just be

    self._vars.pop()

Fortunately it seems that _vars isn't used.

-- 
Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/


More information about the Python-Projects mailing list