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

Function get_first_executor

Lib/test/test_capi/test_opt.py:45–53  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

43
44
45def get_first_executor(func):
46 code = func.__code__
47 co_code = code.co_code
48 for i in range(0, len(co_code), 2):
49 try:
50 return _opcode.get_executor(code, i)
51 except ValueError:
52 pass
53 return None
54
55def get_all_executors(func):
56 code = func.__code__

Callers 15

test_basic_loopMethod · 0.85
test_extended_argMethod · 0.85
test_pop_jump_if_noneMethod · 0.85
test_pop_jump_if_trueMethod · 0.85
test_jump_backwardMethod · 0.85
test_resumeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…