Eliminate a big block of duplicate code in PySequence_List() by

exposing _PyList_Extend().
This commit is contained in:
Raymond Hettinger 2004-03-11 09:13:12 +00:00
parent 97bc618229
commit 8ca92ae54c
3 changed files with 13 additions and 54 deletions

View file

@ -776,6 +776,12 @@ listextend(PyListObject *self, PyObject *b)
return NULL;
}
PyObject *
_PyList_Extend(PyListObject *self, PyObject *b)
{
return listextend(self, b);
}
static PyObject *
list_inplace_concat(PyListObject *self, PyObject *other)
{