mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Eliminate a big block of duplicate code in PySequence_List() by
exposing _PyList_Extend().
This commit is contained in:
parent
97bc618229
commit
8ca92ae54c
3 changed files with 13 additions and 54 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue