Query module UndefinedGlobal

name
Use of an undefined global variable
description
Using a global variable before it is initialized causes an exception.
kind
problem
tags
reliability correctness
problem.severity
error
sub-severity
low
precision
low
id
py/undefined-global-variable

Imports

Loop
MonkeyPatched
PointsTo

Part of the combined points-to, call-graph and type-inference library. The main relation points_to(node, context, object, cls, origin) relates a control flow node to the possible objects it points-to the inferred types of those objects and the ‘origin’ of those objects. The ‘origin’ is the point in source code that the object can be traced back to.

python

Predicates