monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
# nonlocal at module level is a syntax error
nonlocal x  # type: ignore
"""
TRACEBACK:
Traceback (most recent call last):
  File "traceback__nonlocal_module_scope.py", line 2
    nonlocal x  # type: ignore
    ~~~~~~~~~~
SyntaxError: nonlocal declaration not allowed at module level
"""