MCPcopy Index your code
hub / github.com/RustPython/RustPython / builtin_exec.py

File builtin_exec.py

extra_tests/snippets/builtin_exec.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1exec("def square(x):\n return x * x\n")
2assert 16 == square(4) # noqa: F821
3
4d = {}

Callers

nothing calls this directly

Calls 5

globalsFunction · 0.85
localsFunction · 0.85
execFunction · 0.70
gFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected