Skip to content

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

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.

Copy link
Member

@1st1 1st1 left a comment

Choose a reason for hiding this comment

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

LGTM but I'd name the function differently.

@serhiy-storchaka
Copy link
Member Author

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
@serhiy-storchaka serhiy-storchaka deleted the gen-send-ex branch September 22, 2020 05:08
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.

4 participants