aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-11 09:13:12 +0000
committerRaymond Hettinger <python@rcn.com>2004-03-11 09:13:12 +0000
commit8ca92ae54c3c0958bf073fe04d897f8f01e02547 (patch)
tree45e7bdaf0195a815f8bc68eace8a5105fa583fad /Include/listobject.h
parentlist_inplace_concat() is now expressed in terms of list_extend() which (diff)
downloadcpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.tar.gz
cpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.tar.bz2
cpython-8ca92ae54c3c0958bf073fe04d897f8f01e02547.zip
Eliminate a big block of duplicate code in PySequence_List() by
exposing _PyList_Extend().
Diffstat (limited to 'Include/listobject.h')
-rw-r--r--Include/listobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/listobject.h b/Include/listobject.h
index 6221b80d1f9..b4935ae8946 100644
--- a/Include/listobject.h
+++ b/Include/listobject.h
@@ -41,6 +41,7 @@ PyAPI_FUNC(int) PyList_SetSlice(PyObject *, int, int, PyObject *);
PyAPI_FUNC(int) PyList_Sort(PyObject *);
PyAPI_FUNC(int) PyList_Reverse(PyObject *);
PyAPI_FUNC(PyObject *) PyList_AsTuple(PyObject *);
+PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
/* Macro, trading safety for speed */
#define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])