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
# call-external
# Test that calling a field value (not a method) raises TypeError
point = make_point()
point.x()
"""
TRACEBACK:
Traceback (most recent call last):
  File "dataclass__call_field_error.py", line 4, in <module>
    point.x()
    ~~~~~~~~~
TypeError: 'int' object is not callable
"""