[issue31832] Async list comprehension (PEP 530) causes SyntaxError in Python 3.6.3

Zachary Ware report at bugs.python.org
Fri Oct 20 23:19:19 EDT 2017


Zachary Ware <zachary.ware at gmail.com> added the comment:

That's already provided, just do `return outputs` instead of `print(outputs)`, and `outputs = event_loop.run_until_complete(main())`.  See https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.AbstractEventLoop.run_until_complete

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31832>
_______________________________________


More information about the Python-bugs-list mailing list