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
13
14
15
16
17
# call-external
def wrapper():
    raise_error('ValueError', 'from external')


wrapper()
"""
TRACEBACK:
Traceback (most recent call last):
  File "ext_call__exc_in_function.py", line 6, in <module>
    wrapper()
    ~~~~~~~~~
  File "ext_call__exc_in_function.py", line 3, in wrapper
    raise_error('ValueError', 'from external')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ValueError: from external
"""