[Python-ideas] async/await in Python

Chris Angelico rosuav at gmail.com
Sat Apr 18 01:08:55 CEST 2015


On Sat, Apr 18, 2015 at 8:56 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> You forget that '__anext__' can be implemented as 'async def'
> function, as well as a regular 'def' returning an *awaitable*
> object, such as asyncio.Future or generator wrapped in
> 'types.async_def'.

Oh. Hrm. Good point.

There is still the concern that StopAsyncIteration bubbling will be
just as much a problem as StopIteration bubbling is, but you're in a
better position than I am to look into that.

ChrisA


More information about the Python-ideas mailing list