monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
# Test that heap values are cleaned up when duplicate kwargs error occurs
def f(a, b):
    return a


# The list value in the dict should be cleaned up when the error occurs
f(a=[1, 2, 3], **{'a': [4, 5, 6]})
# Raise=TypeError("f() got multiple values for keyword argument 'a'")