monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
# Two different self-referential lists compared for equality.
# CPython raises RecursionError; Monty must not panic.
a = [1, 2, 3]
b = [1, 2, 3]
a.append(a)
b.append(b)
try:
    a == b
    assert False, 'should have raised RecursionError'
except RecursionError:
    pass