Message377023
> I think it should be specific to generators and coroutines. Calling `PyObject_CallMethodIdOneArg(coro, &PyId_send, arg);` and interpreting exceptions to emulate the low level API seems a bit too much.
To add to my point: typically higher-level APIs go under the `PyObject_*` namespace, whereas `Py{Type}_*` is more concrete. So I'd make `PyGen_Send` to only work with `PyGen` and `PyCoro`. |
|
Date |
User |
Action |
Args |
2020-09-16 20:44:00 | yselivanov | set | recipients:
+ yselivanov, scoder, lukasz.langa, Mark.Shannon, serhiy.storchaka, v2m |
2020-09-16 20:44:00 | yselivanov | set | messageid: <1600289040.9.0.490740641054.issue41756@roundup.psfhosted.org> |
2020-09-16 20:44:00 | yselivanov | link | issue41756 messages |
2020-09-16 20:44:00 | yselivanov | create | |
|