Commit a6afe0e5 authored by Stefan Behnel's avatar Stefan Behnel

restrict __Pyx_PyList_Append() usage to listcomps as it does not handle the...

restrict __Pyx_PyList_Append() usage to listcomps as it does not handle the case of shrinking the list array
parent adb4693e
/////////////// append.proto ///////////////
//@requires: InternalListAppend
static CYTHON_INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
if (likely(PyList_CheckExact(L))) {
if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return NULL;
if (unlikely(PyList_Append(L, x) < 0)) return NULL;
Py_INCREF(Py_None);
return Py_None; /* this is just to have an accurate signature */
} else {
......
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