Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
g
Function · 0.70
builtin_exec.py
File · 0.70
Calls
3
globals
Function · 0.85
locals
Function · 0.85
exec
Function · 0.70
Tested by
no test coverage detected