diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-11 09:13:12 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-11 09:13:12 (GMT) |
commit | 8ca92ae54c3c0958bf073fe04d897f8f01e02547 (patch) | |
tree | 45e7bdaf0195a815f8bc68eace8a5105fa583fad /Include | |
parent | 97bc6182297ab383d54dca4b85fe656a658e7f0d (diff) | |
download | cpython-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')
-rw-r--r-- | Include/listobject.h | 1 |
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]) |