pythonwhat icon indicating copy to clipboard operation
pythonwhat copied to clipboard

add support for async function defs

Open machow opened this issue 7 years ago • 0 comments

python3 allows

async def f(): pass

AFAIK this produces an AST node that is identical to FunctionDef, except it is named AsyncFunctionDef. In order to support async functions we should just need to a visitor rule named AsyncFunctionDef for every FunctionDef rule...

machow avatar May 03 '17 18:05 machow