summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-11 09:13:12 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-11 09:13:12 (GMT)
commit8ca92ae54c3c0958bf073fe04d897f8f01e02547 (patch)
tree45e7bdaf0195a815f8bc68eace8a5105fa583fad /Objects/listobject.c
parent97bc6182297ab383d54dca4b85fe656a658e7f0d (diff)
downloadcpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.zip
cpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.tar.gz
cpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.tar.bz2
Eliminate a big block of duplicate code in PySequence_List() by
exposing _PyList_Extend().
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 6bb6d8c7..ed6ed3e 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -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)
{