[Python-ideas] PEP 530: Asynchronous Comprehensions

Chris Angelico rosuav at gmail.com
Sat Sep 3 20:34:03 EDT 2016


On Sun, Sep 4, 2016 at 9:31 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> Below is a proposal to add support for asynchronous comprehensions and
> basynchronous generator expressions in Python 3.6.

Looks good to me! No content comments, and +1 on the proposal. One
copyedit suggestion:

> In principle, asynchronous generator expressions are allowed in
> any context.  However, in Python 3.6, due to ``async`` and ``await``
> soft-keyword status, asynchronous generator expressions are only
> allowed in an ``async def`` function.  Once ``async`` and ``await``
> become reserved keywords in Python 3.7 this restriction will be
> removed.

Does this want a comma after "3.7"?

Otherwise, LGTM. Bring on the asynciness!

ChrisA


More information about the Python-ideas mailing list