New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41756: Delete PyGen_Send function #22663
Conversation
| @@ -269,13 +269,29 @@ gen_send_ex2(PyGenObject *gen, PyObject *arg, PyObject **presult, | |||
| } | |||
|
|
|||
| PySendResult | |||
| PyGen_Send(PyGenObject *gen, PyObject *arg, PyObject **result) | |||
| PyIter_Send(PyObject *iter, PyObject *arg, PyObject **result) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, what function does the ceval look call now when in tracing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It calls _PyObject_CallMethodIdOneArg(receiver, &PyId_send, v).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
|
@1st1: Please replace |
|
Thanks @vladima and @serhiy-storchaka! |
Delete
PyGen_Sendfunction and inline its body intoPyIter_Send. This PR does not introduce new functionality so there is nothing to report in news.https://bugs.python.org/issue41756