Home
last modified time | relevance | path

Searched refs:PyListObject (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Objects/
Dlistobject.c25 list_resize(PyListObject *self, Py_ssize_t newsize) in list_resize()
97 static PyListObject *free_list[PyList_MAXFREELIST];
103 PyListObject *op; in PyList_Fini()
115 PyListObject *op; in PyList_New()
142 op = PyObject_GC_New(PyListObject, &PyList_Type); in PyList_New()
195 return ((PyListObject *)op) -> ob_item[i]; in PyList_GetItem()
215 p = ((PyListObject *)op) -> ob_item + i; in PyList_SetItem()
223 ins1(PyListObject *self, Py_ssize_t where, PyObject *v) in ins1()
262 return ins1((PyListObject *)op, where, newitem); in PyList_Insert()
266 app1(PyListObject *self, PyObject *v) in app1()
[all …]
Dabstract.c2265 rv = _PyList_Extend((PyListObject *)result, v);
/external/python/cpython2/Modules/
D_heapqmodule.c36 _siftdown(PyListObject *heap, Py_ssize_t startpos, Py_ssize_t pos) in _siftdown()
75 _siftup(PyListObject *heap, Py_ssize_t pos) in _siftup()
136 if (_siftdown((PyListObject *)heap, 0, PyList_GET_SIZE(heap)-1) == -1) in heappush()
172 if (_siftup((PyListObject *)heap, 0) == -1) { in heappop()
203 if (_siftup((PyListObject *)heap, 0) == -1) { in heapreplace()
255 if (_siftup((PyListObject *)heap, 0) == -1) { in heappushpop()
286 if(_siftup((PyListObject *)heap, i) == -1) in heapify()
331 if(_siftup((PyListObject *)heap, i) == -1) in nlargest()
355 if (_siftup((PyListObject *)heap, 0) == -1) in nlargest()
379 _siftdownmax(PyListObject *heap, Py_ssize_t startpos, Py_ssize_t pos) in _siftdownmax()
[all …]
Dxxsubtype.c22 PyListObject list;
/external/python/cpython2/Include/
Dlistobject.h39 } PyListObject; typedef
58 PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
61 #define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])
62 #define PyList_SET_ITEM(op, i, v) (((PyListObject *)(op))->ob_item[i] = (v))
Dabstract.h1181 (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
/external/python/cpython2/Doc/includes/
Dshoddy.c4 PyListObject list;
/external/python/cpython2/Doc/c-api/
Ddict.rst123 Return a :c:type:`PyListObject` containing all the items from the
129 Return a :c:type:`PyListObject` containing all the keys from the dictionary,
135 Return a :c:type:`PyListObject` containing all the values from the
Dlist.rst11 .. c:type:: PyListObject
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c4377 PyListObject *np; in Array_slice()
4406 np = (PyListObject *) PyList_New(len); in Array_slice()
5128 PyListObject *np; in Pointer_slice()
5155 np = (PyListObject *) PyList_New(len); in Pointer_slice()
/external/python/cpython2/PC/
D_winreg.c830 (PyListObject *)value,j); in Py2Reg()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst846 PyListObject list;
855 be safely cast to both *PyListObject\** and *Shoddy\**. ::
/external/python/cpython2/Python/
Dceval.c2229 ((PyListObject *)v)->ob_item; in PyEval_EvalFrameEx()