monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
# Test that accessing an undefined global name raises NameError
unknown_func()
"""
TRACEBACK:
Traceback (most recent call last):
  File "name_error__undefined_global.py", line 2, in <module>
    unknown_func()
    ~~~~~~~~~~~~
NameError: name 'unknown_func' is not defined
"""