diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-12 16:38:17 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-12 16:38:17 (GMT) |
commit | 42bec93e5c0fd114b2f4c3c498b35001d97a94c4 (patch) | |
tree | 9e50d648a8e139a44ed9c22a811571bfa0d35280 /Objects/listobject.c | |
parent | fba1cfc49a7ce1b2d7e7eab93ef05c3cc81d6e1a (diff) | |
download | cpython-42bec93e5c0fd114b2f4c3c498b35001d97a94c4.zip cpython-42bec93e5c0fd114b2f4c3c498b35001d97a94c4.tar.gz cpython-42bec93e5c0fd114b2f4c3c498b35001d97a94c4.tar.bz2 |
Make PySequence_Fast_ITEMS public. (Thanks Skip.)
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 9ee5756..3bda245 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -491,7 +491,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v) if(v_as_SF == NULL) return -1; n = PySequence_Fast_GET_SIZE(v_as_SF); - vitem = _PySequence_Fast_ITEMS(v_as_SF); + vitem = PySequence_Fast_ITEMS(v_as_SF); } if (ilow < 0) ilow = 0; @@ -686,7 +686,7 @@ listextend_internal(PyListObject *self, PyObject *b) } /* populate the end of self with b's items */ - src = _PySequence_Fast_ITEMS(b); + src = PySequence_Fast_ITEMS(b); dest = self->ob_item + selflen; for (i = 0; i < blen; i++) { PyObject *o = src[i]; @@ -2561,7 +2561,7 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value) PyMem_MALLOC(slicelength*sizeof(PyObject*)); selfitems = self->ob_item; - seqitems = _PySequence_Fast_ITEMS(seq); + seqitems = PySequence_Fast_ITEMS(seq); for (cur = start, i = 0; i < slicelength; cur += step, i++) { garbage[i] = selfitems[cur]; |