Message377132
Sounds like a good middleground to start: add ``PySendResult `` and `PySendResult PyGen_Send(PyGenObject*, PyObject* PyObject**)` specific to generators and coroutines. Subsequent changes could introduce `PySendResult PyIter_Send(PyObject*, PyObject*, PyObject**)` that would be more generic (call tp_next, invoke "send" or maybe in the future use dedicated slot for "send" operator so i.e. asyncio.Future or Cython coroutines could benefit from the same optimization) |
|
Date |
User |
Action |
Args |
2020-09-18 17:55:09 | v2m | set | recipients:
+ v2m, scoder, lukasz.langa, Mark.Shannon, serhiy.storchaka, yselivanov |
2020-09-18 17:55:09 | v2m | set | messageid: <1600451709.2.0.551823492177.issue41756@roundup.psfhosted.org> |
2020-09-18 17:55:09 | v2m | link | issue41756 messages |
2020-09-18 17:55:09 | v2m | create | |
|