MCPcopy Index your code
hub / github.com/RustPython/RustPython / _replacing_exec

Method _replacing_exec

Lib/test/test_listcomps.py:671–674  ·  view source on GitHub ↗
(self, code_string, ns)

Source from the content-addressed store, hash-verified

669 ))
670
671 def _replacing_exec(self, code_string, ns):
672 co = compile(code_string, "<string>", "exec")
673 co = self._recursive_replace(co)
674 exec(co, ns)
675
676 def test_code_replace(self):
677 code = """

Callers

nothing calls this directly

Calls 3

_recursive_replaceMethod · 0.95
compileFunction · 0.50
execFunction · 0.50

Tested by

no test coverage detected