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

Function clear_executors

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

Source from the content-addressed store, hash-verified

34
35@contextlib.contextmanager
36def clear_executors(func):
37 # Clear executors in func before and after running a block
38 reset_code(func)
39 try:
40 yield
41 finally:
42 reset_code(func)
43
44
45def get_first_executor(func):

Callers

nothing calls this directly

Calls 1

reset_codeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…