Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ example.py
File
example.py
src/9/executing_code_with_local_side_effects/example.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
test():
2
a = 13
3
loc = locals()
4
exec(
'b = a + 1'
)
Callers
nothing calls this directly
Calls
5
test1
Function · 0.85
test2
Function · 0.85
test3
Function · 0.85
test4
Function · 0.85
test
Function · 0.70
Tested by
no test coverage detected