interpretthis 0.3.0

Sandboxed Python AST interpreter for untrusted and LLM-generated code
Documentation
1
2
3
4
5
6
7
8
9
10
# Pin: a class with `__init__` storing an attribute on `self`, then reading it
# back through an instance.
# Expected stdout: `5`.
class P:
    def __init__(self, x):
        self.x = x


p = P(5)
print(p.x)