CodeQL library for Python
codeql/python-all 2.1.1-dev (changelog, source)
Search

Predicate attributeClearStep

Holds if values stored inside attribute c are cleared at node n.

In obj.foo = x any old value stored in foo is cleared at the pre-update node associated with obj

Import path

import semmle.python.dataflow.new.internal.DataFlowPrivate
predicate attributeClearStep(Node n, AttributeContent c)