monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# Read-before-write at module scope must raise `NameError`, not `UnboundLocalError`.
print(x)
x = 1
print(x)
"""
TRACEBACK:
Traceback (most recent call last):
  File "name_error__unbound_local_module.py", line 2, in <module>
    print(x)
          ~
NameError: name 'x' is not defined
"""