MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / runctx

Method runctx

tools/python-3.11.9-amd64/Lib/trace.py:443–454  ·  view source on GitHub ↗
(self, cmd, globals=None, locals=None)

Source from the content-addressed store, hash-verified

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

Callers 2

runMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected