monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
import math

math.factorial(-1)
"""
TRACEBACK:
Traceback (most recent call last):
  File "math__factorial_negative_error.py", line 3, in <module>
    math.factorial(-1)
    ~~~~~~~~~~~~~~~~~~
ValueError: factorial() not defined for negative values
"""