Files
RustPython/tests/snippets/async_stuff.py
2019-10-14 11:05:18 +09: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))