MCPcopy 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

1def test():
2 a = 13
3 loc = locals()
4 exec('b = a + 1')

Callers

nothing calls this directly

Calls 5

test1Function · 0.85
test2Function · 0.85
test3Function · 0.85
test4Function · 0.85
testFunction · 0.70

Tested by

no test coverage detected