summaryrefslogtreecommitdiffstats
path: root/Include/listobject.h
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 /Include/listobject.h
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 '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 6221b80..b4935ae 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])