Message377067
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:23 | v2m | set | recipients:
+ v2m, scoder, lukasz.langa, Mark.Shannon, serhiy.storchaka, yselivanov |
2020-09-17 21:21:23 | v2m | set | messageid: <1600377683.15.0.374792627908.issue41756@roundup.psfhosted.org> |
2020-09-17 21:21:23 | v2m | link | issue41756 messages |
2020-09-17 21:21:23 | v2m | create | |
|