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

Method runctx

Lib/trace.py:446–457  ·  view source on GitHub ↗
(self, cmd, globals=None, locals=None)

Source from the content-addressed store, hash-verified

444 self.runctx(cmd, dict, dict)
445
446 def runctx(self, cmd, globals=None, locals=None):
447 if globals is None: globals = {}
448 if locals is None: locals = {}
449 if not self.donothing:
450 threading.settrace(self.globaltrace)
451 sys.settrace(self.globaltrace)
452 try:
453 exec(cmd, globals, locals)
454 finally:
455 if not self.donothing:
456 sys.settrace(None)
457 threading.settrace(None)
458
459 def runfunc(self, func, /, *args, **kw):
460 result = None

Callers 2

runMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected