[Python-ideas] PEP 530: Asynchronous Comprehensions

Yury Selivanov yselivanov.ml at gmail.com
Tue Sep 6 13:42:03 EDT 2016


On 2016-09-04 3:10 AM, Adam Bartoš wrote:
> Hello,
>
> will await be allowed also in the "if" part of comprehensions? And 
> what about the "in" part? (e.g. if I'm not mistaken, we may have an 
> asynchronous function returning an asynchronous iterator.)

Yes, awaits will be allowed.  I'll update the PEP.

Yury


More information about the Python-ideas mailing list