Re: [Python-Dev] Addendum to PEP 530

2019-03-04 Thread Brett Cannon
Open an issue at https://github.com/python/steering-council/issues if you want the steering council to consider something. On Mon, Mar 4, 2019 at 9:38 AM Serhiy Storchaka wrote: > PEP 530 introduced support for asynchronous comprehensions. > > Comprehensions are implemented as local functions. T

[Python-Dev] Addendum to PEP 530

2019-03-04 Thread Serhiy Storchaka
PEP 530 introduced support for asynchronous comprehensions. Comprehensions are implemented as local functions. To make a function asynchronous you should to add "async" before "def", and after that you can use "async for", "async with" and "await" in a function. But you can to do this with com