interpretthis 0.3.0

Sandboxed Python AST interpreter for untrusted and LLM-generated code
Documentation
1
2
3
4
5
6
7
# math.fmod follows the C semantics (result has the sign of the dividend),
# which differs from Python's % operator (sign of the divisor).
import math

print(math.fmod(10, 3))
print(math.fmod(-10, 3))
print(math.fmod(10, -3))