This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author v2m
Recipients Mark.Shannon, lukasz.langa, scoder, serhiy.storchaka, v2m, yselivanov
Date 2020-09-17.21:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
so to summarize:

Proposed function signature:
PySendResult PyIter_Send(PyObject *obj, PyObject *arg, PyObject **result);

For generators/coroutines function will delegate to specialized implementation that does not raise StopIteration exception
For types that provide `tp_iternext` if arg is Py_None function call invoke `Py_TYPE(obj)->tp_iternext(obj)`
For all other cases function will try to call `send` method

Regarding of the case function will not raise StopIteration and will always return pair status/result.

Does it sound correct?
Date User Action Args
2020-09-17 21:21:23v2msetrecipients: + v2m, scoder, lukasz.langa, Mark.Shannon, serhiy.storchaka, yselivanov
2020-09-17 21:21:23v2msetmessageid: <>
2020-09-17 21:21:23v2mlinkissue41756 messages
2020-09-17 21:21:23v2mcreate