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
13
14
# run-async
async def foo():
    return 1


await asyncio.gather(foo(), foo())  # pyright: ignore
"""
TRACEBACK:
Traceback (most recent call last):
  File "async__not_imported.py", line 6, in <module>
    await asyncio.gather(foo(), foo())  # pyright: ignore
          ~~~~~~~
NameError: name 'asyncio' is not defined. Did you forget to import 'asyncio'?
"""