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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to