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

Function f

extra_tests/snippets/builtin_exec.py:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 seven = "seven"
23
24 def f():
25 try:
26 exec("seven", None, {})
27 except NameError:
28 pass
29 else:
30 raise NameError("seven shouldn't be in scope")
31
32 f()
33

Callers 2

gFunction · 0.70
builtin_exec.pyFile · 0.70

Calls 3

globalsFunction · 0.85
localsFunction · 0.85
execFunction · 0.70

Tested by

no test coverage detected