Skip to content
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: Refactor gen_send_ex(). #22330

Merged
merged 1 commit into from Sep 22, 2020

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 20, 2020

static PyObject *
gen_send_ex(PyGenObject *gen, PyObject *arg, int exc, int closing, int *is_return_value)
static PySendResult
gen_send_ex2(PyGenObject *gen, PyObject *arg, PyObject **presult,
Copy link
Member

@1st1 1st1 Sep 20, 2020

Choose a reason for hiding this comment

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

I'd call this function gen_send.

1st1
1st1 approved these changes Sep 20, 2020
Copy link
Member

@1st1 1st1 left a comment

LGTM but I'd name the function differently.

@serhiy-storchaka
Copy link
Member Author

serhiy-storchaka commented Sep 20, 2020

gen_send is the natural name of the implementation of the send() method. Currently it is named _PyGen_Send, but this API function will be replaced with PyGen_Send (and later with PyIter_Send).

@serhiy-storchaka serhiy-storchaka merged commit 6c33385 into python:master Sep 22, 2020
3 checks passed
@serhiy-storchaka serhiy-storchaka deleted the gen-send-ex branch Sep 22, 2020
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
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.

None yet

4 participants