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 <1600377683.15.0.374792627908.issue41756@roundup.psfhosted.org>
In-reply-to
Content
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?
History
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: <1600377683.15.0.374792627908.issue41756@roundup.psfhosted.org>
2020-09-17 21:21:23v2mlinkissue41756 messages
2020-09-17 21:21:23v2mcreate