Hi,
I'm starting with asyncio and python3.6 (using Python 3.6.0b4).
See this snippet:
import asyncio
async def fa():
return 1/0
async def fb():
return await fa()
async def fc():
return await fb()
async def test():
return await fc()
asyncio.get_event_loop().run_until_complete(test())
When I run it I get:
$ python test0.py
Traceback (most recent call last):
File "test0.py", line 18, in <module>
asyncio.get_event_loop().run_until_complete(test())
File "/opt/py36/lib/python3.6/asyncio/base_events.py", line 466, in
run_until_complete
return future.result()
ZeroDivisionError: division by zero
Only the exception is printed, the traceback is missing.
If I set PYTHONASYNCIODEBUG it doesn't help.
Is this the expected behavior? Do I need to manage to get the traceback
from the coroutine passed to run_until_complete ?