Files
RustPython/tests/snippets/test_async_stuff.py
Windel Bouwman b3b523ffa9 Add await syntax.
2019-05-02 17:11:51 +02:00

14 lines
157 B
Python

import sys
import ast
src = """
async def x():
async for x in [1,2,3]:
await y()
"""
mod = ast.parse(src)
# print(mod)
# print(ast.dump(mod))