Class p.u.p.Checker(object):

Part of pida.utils.pyflakes View In Hierarchy

No class docstring
Line # Kind Name Docs
53 Method __init__ Undocumented
68 Method defer Schedule something to be called after just before completion.
78 Method scope Undocumented
82 Method popScope Undocumented
85 Method check_dead_scopes Undocumented
91 Method pushFunctionScope Undocumented
94 Method pushClassScope Undocumented
97 Method report Undocumented
100 Method handleChildren Undocumented
104 Method handleNode Undocumented
116 Method ignore Undocumented
129 Method addBinding Called when a binding is altered.
152 Method LISTCOMP Undocumented
159 Method NAME Undocumented
194 Method FUNCTION Undocumented
200 Method LAMBDA Undocumented
225 Method CLASS Undocumented
233 Method ASSNAME Undocumented
239 Method ASSIGN Undocumented
244 Method IMPORT Undocumented
250 Method FROM Undocumented
def __init__(self, tree, filename='(none)'):
Undocumented
def defer(self, callable):
Schedule something to be called after just before completion.

This is used for handling function bodies, which must be deferred because code later in the file might modify the global scope. When callable is called, the scope at the time this is called will be restored, however it will contain any new bindings added to it.

def scope(self):
Undocumented
def popScope(self):
Undocumented
def check_dead_scopes(self):
Undocumented
def pushFunctionScope(self):
Undocumented
def pushClassScope(self):
Undocumented
def report(self, messageClass, *args, **kwargs):
Undocumented
def handleChildren(self, tree):
Undocumented
def handleNode(self, node):
Undocumented
def ignore(self, node):
Undocumented
def addBinding(self, lineno, value, reportRedef=True):

Called when a binding is altered.

  • lineno is the line of the statement responsible for the change
  • value is the optional new value, a Binding instance, associated with the binding; if None, the binding is deleted if it exists.
  • iff reportRedef is True (default), rebinding while unused will be reported.
def LISTCOMP(self, node):
Undocumented
def NAME(self, node):
Undocumented
def FUNCTION(self, node):
Undocumented
def LAMBDA(self, node):
Undocumented
def CLASS(self, node):
Undocumented
def ASSNAME(self, node):
Undocumented
def ASSIGN(self, node):
Undocumented
def IMPORT(self, node):
Undocumented
def FROM(self, node):
Undocumented
API Documentation for PIDA, generated by pydoctor.