Skip to content

bpo-41756: Delete PyGen_Send function #22663

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

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Oct 12, 2020

Delete PyGen_Send function and inline its body into PyIter_Send. This PR does not introduce new functionality so there is nothing to report in news.

https://bugs.python.org/issue41756

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 👍

@@ -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)
Copy link
Member

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?

Copy link
Member

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).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@1st1 1st1 added the skip news label Oct 12, 2020
@1st1 1st1 merged commit 24a54c0 into python:master Oct 12, 2020
@bedevere-bot
Copy link

@1st1: Please replace # with GH- in the commit message next time. Thanks!

@1st1
Copy link
Member

1st1 commented Oct 12, 2020

Thanks @vladima and @serhiy-storchaka!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants