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

Predicate executes_in_runtime_context

Holds if this scope can be executed in the default context. All modules and classes executed at import time and all “public” functions and methods, including those invoked by the VM.

Import path

import semmle.python.pointsto.PointsToContext
predicate executes_in_runtime_context(Function f)