[New-bugs-announce] [issue24511] Add methods for async protocols

Yury Selivanov report at bugs.python.org
Thu Jun 25 17:42:28 CEST 2015

New submission from Yury Selivanov:

Let's consider adding C API functions for working with new tp_as_async:

PyAwait_Check for checking tp_as_async->am_await || PyCoro_Check || PyGen & CO_ITERABLE_COROUTINE

PyAwait_AsyncIterCheck for checking tp_as_async->am_iter
PyAwait_GetAsyncIter for calling tp_as_async->am_iter
PyAwait_AsyncIterNext for calling tp_as_async->am_next

Please also see issue24510 for opening up _PyCoro_GetAwaitableIter; we can call it PyAwait_Get

assignee: yselivanov
components: Interpreter Core
messages: 245814
nosy: gvanrossum, haypo, ncoghlan, scoder, yselivanov
priority: normal
severity: normal
status: open
title: Add methods for async protocols
versions: Python 3.5, Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list