[issue41756] Do not always use exceptions to return result from coroutine

Serhiy Storchaka report at bugs.python.org
Wed Sep 16 17:14:53 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There are other abstract object APIs: PyNumber, PySequence, PyMapping, etc. In particularly PyIter_Next() works with the iterator protocol, there is no single iterator class. Seems PyGen_* API is related to concrete class, but we can introduce new namespace for the generator protocol.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41756>
_______________________________________


More information about the Python-bugs-list mailing list