[issue34445] asyncio support in doctests

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34445] asyncio support in doctests

2018-08-30 Thread Stefan Tjarks
Stefan Tjarks added the comment: Thanks Grant! I expected that I am missing something. You are right that I could have posted in many places to get help about this. Before posting I tried to find a doctest for asyncio but my google magic failed me. At the end I just felt that, at the very

[issue34445] asyncio support in doctests

2018-08-30 Thread Grant Jenks
Grant Jenks added the comment: This is not a bug in Python. The SyntaxError matches expected behavior. According to the Python grammar, you can't have "await" outside of a function. You have "await" at the globals scope which is not permitted. You may only "await" functions from within

[issue34445] asyncio support in doctests

2018-08-20 Thread Stefan Tjarks
New submission from Stefan Tjarks : When writing a docstring for an async function I wrote a doctest for it. ``` async def hello_world(): """ Will great the world with a friendly hello. >>> await hello_world() "hello world" """ return "hello world" ``` I kind of