CodeQL library for Python
codeql/python-all 2.2.0 (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)