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

Yury Selivanov report at bugs.python.org
Thu Sep 17 20:09:08 EDT 2020


Yury Selivanov <yselivanov at gmail.com> added the comment:

> Does it sound correct?

It does, but given the amount of back and forth on this, I'd wait for Serhiy and Stefan to confirm if they're OK.

IMO the `PyIter_Send` name is OK (given how generic the implementation will be) and returning an enum, while a tad unconventional for the C API is way more convenient for the developer.

----------

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


More information about the Python-bugs-list mailing list