Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4dcb10 commit 302e790Copy full SHA for 302e790
1 file changed
Python/ceval.c
@@ -1837,10 +1837,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1837
if (PyGen_CheckExact(x)) {
1838
retval = _PyGen_Send((PyGenObject *)x, u);
1839
} else {
1840
+ _Py_IDENTIFIER(send);
1841
if (u == Py_None)
1842
retval = PyIter_Next(x);
1843
else
- retval = PyObject_CallMethod(x, "send", "O", u);
1844
+ retval = _PyObject_CallMethodId(x, &PyId_send, "O", u);
1845
}
1846
Py_DECREF(u);
1847
if (!retval) {
0 commit comments