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

Method runfunc

Lib/trace.py:459–468  ·  view source on GitHub ↗
(self, func, /, *args, **kw)

Source from the content-addressed store, hash-verified

457 threading.settrace(None)
458
459 def runfunc(self, func, /, *args, **kw):
460 result = None
461 if not self.donothing:
462 sys.settrace(self.globaltrace)
463 try:
464 result = func(*args, **kw)
465 finally:
466 if not self.donothing:
467 sys.settrace(None)
468 return result
469
470 def file_module_function_of(self, frame):
471 code = frame.f_code

Calls 1

funcFunction · 0.50