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

Predicate attributeReadStep

Holds if nodeTo is a read of the attribute c of the object nodeFrom.

For example

obj.foo

is a read of the attribute foo from the object obj.

Import path

import semmle.python.dataflow.new.internal.DataFlowPrivate
predicate attributeReadStep(Node nodeFrom, AttributeContent c, AttrRead nodeTo)