Commit 70fa4c77 authored by Stefan Behnel's avatar Stefan Behnel

fix __Pyx_SetItemInt() in PyPy: PySequence_Check(dict) is true there but...

fix __Pyx_SetItemInt() in PyPy: PySequence_Check(dict) is true there but PySequence_SetItem(dict) fails
parent 0ff0af9c
......@@ -10011,7 +10011,11 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
}
} else
#endif
#if CYTHON_COMPILING_IN_PYPY
if (PySequence_Check(o) && !PyDict_Check(o)) {
#else
if (PySequence_Check(o)) {
#endif
return PySequence_SetItem(o, i, v);
}
return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v);
......
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