MCPcopy Index your code
hub / github.com/python/cpython / oparg_used

Function oparg_used

Tools/cases_generator/analyzer.py:538–542  ·  view source on GitHub ↗

Determine whether `oparg` is used in a node.

(node: parser.CodeDef)

Source from the content-addressed store, hash-verified

536
537
538def oparg_used(node: parser.CodeDef) -> bool:
539 """Determine whether `oparg` is used in a node."""
540 return any(
541 token.kind == "IDENTIFIER" and token.text == "oparg" for token in node.tokens
542 )
543
544
545def tier_variable(node: parser.CodeDef) -> int | None:

Callers 1

compute_propertiesFunction · 0.85

Calls 1

anyFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…