Commit 38c4c7dd authored by Stefan Behnel's avatar Stefan Behnel

fix stupid C-API misuse: accidentally passed a NULL pointer to...

fix stupid C-API misuse: accidentally passed a NULL pointer to PyObject_GetItem() instead of a 0 integer index to PySequence_GetItem()
parent ff15b2f7
......@@ -151,7 +151,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue) {
PyObject* args = PyObject_GetAttr(ev, PYIDENT("args"));
Py_DECREF(ev);
if (likely(args)) {
value = PyObject_GetItem(args, 0);
value = PySequence_GetItem(args, 0);
Py_DECREF(args);
}
if (unlikely(!value)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment