[New-bugs-announce] [issue24510] Make _PyCoro_GetAwaitableIter a public API

Yury Selivanov report at bugs.python.org
Thu Jun 25 17:35:58 CEST 2015


New submission from Yury Selivanov:

We should consider making _PyCoro_GetAwaitableIter(o) a public API.

Its implementation isn't trivial because it's not around simply accessing 'tp_as_async->am_await'.  You also need to check is 'o' is a generator with a CO_ITERABLE_COROUTINE or a CoroObject, etc.

----------
assignee: yselivanov
components: Interpreter Core
messages: 245812
nosy: gvanrossum, haypo, ncoghlan, scoder, yselivanov
priority: normal
severity: normal
status: open
title: Make _PyCoro_GetAwaitableIter a public API
type: enhancement
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24510>
_______________________________________


More information about the New-bugs-announce mailing list