Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
exec(
"def square(x):\n return x * x\n"
)
2
assert 16 == square(4)
# noqa: F821
3
4
d = {}
Callers
nothing calls this directly
Calls
5
globals
Function · 0.85
locals
Function · 0.85
exec
Function · 0.70
g
Function · 0.70
f
Function · 0.70
Tested by
no test coverage detected