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 yselivanov
Recipients Mark.Shannon, lukasz.langa, scoder, serhiy.storchaka, v2m, yselivanov
Date 2020-09-16.20:44:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:00yselivanovsetrecipients: + yselivanov, scoder, lukasz.langa, Mark.Shannon, serhiy.storchaka, v2m
2020-09-16 20:44:00yselivanovsetmessageid: <>
2020-09-16 20:44:00yselivanovlinkissue41756 messages
2020-09-16 20:44:00yselivanovcreate