Home
last modified time | relevance | path

Searched refs:PyList_GET_SIZE (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython2/Modules/
D_heapqmodule.c43 size = PyList_GET_SIZE(heap); in _siftdown()
58 if (size != PyList_GET_SIZE(heap)) { in _siftdown()
82 endpos = PyList_GET_SIZE(heap); in _siftup()
103 if (endpos != PyList_GET_SIZE(heap)) { in _siftup()
136 if (_siftdown((PyListObject *)heap, 0, PyList_GET_SIZE(heap)-1) == -1) in heappush()
157 n = PyList_GET_SIZE(heap); in heappop()
195 if (PyList_GET_SIZE(heap) < 1) { in heapreplace()
234 if (PyList_GET_SIZE(heap) < 1) { in heappushpop()
247 if (PyList_GET_SIZE(heap) == 0) { in heappushpop()
277 n = PyList_GET_SIZE(heap); in heapify()
[all …]
D_sre.c2079 if (PyList_GET_SIZE(list) == 0) { in join_list()
2752 n = PyList_GET_SIZE(code); in _compile()
3433 for (index = 0; index < PyList_GET_SIZE(keys); index++) { in match_groupdict()
D_elementtree.c174 switch (PyList_GET_SIZE(list)) { in list_join()
1802 if (self->index < PyList_GET_SIZE(self->stack)) {
D_hotshot.c1473 len = PyList_GET_SIZE(temp); in write_header()
/external/python/cpython2/Python/
DPython-ast.c3347 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3354 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3387 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3394 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3450 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3457 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3563 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
3570 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
3592 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
3599 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
[all …]
Dpeephole.c53 len_consts = PyList_GET_SIZE(consts); in tuple_of_constants()
175 len_consts = PyList_GET_SIZE(consts); in fold_binops_on_constants()
228 len_consts = PyList_GET_SIZE(consts); in fold_unaryops_on_constants()
400 for (j=0 ; j < PyList_GET_SIZE(consts) ; j++) { in PyCode_Optimize()
404 if (j == PyList_GET_SIZE(consts)) { in PyCode_Optimize()
Dmarshal.c379 n = PyList_GET_SIZE(v); in w_object()
838 if (n < 0 || n >= PyList_GET_SIZE(p->strings)) { in r_object()
Dsymtable.c696 for (i = 0; i < PyList_GET_SIZE(ste->ste_children); ++i) { in analyze_block()
824 end = PyList_GET_SIZE(st->st_stack) - 1; in symtable_exit_block()
D_warnings.c126 for (i = 0; i < PyList_GET_SIZE(_filters); i++) { in get_filter()
Dsysmodule.c1028 PyList_SetSlice(warnoptions, 0, PyList_GET_SIZE(warnoptions), NULL); in PySys_ResetWarnOptions()
Dceval.c1529 i += PyList_GET_SIZE(v); in PyEval_EvalFrameEx()
1530 if (i >= 0 && i < PyList_GET_SIZE(v)) { in PyEval_EvalFrameEx()
2227 PyList_GET_SIZE(v) == oparg) { in PyEval_EvalFrameEx()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc90 return PyList_GET_SIZE(self->child_messages); in Length()
104 Py_ssize_t child_length = PyList_GET_SIZE(self->child_messages); in UpdateChildMessages()
471 const Py_ssize_t size = PyList_GET_SIZE(self->child_messages); in Release()
493 const Py_ssize_t n = PyList_GET_SIZE(self->child_messages); in SetOwner()
Drepeated_scalar_container.cc71 for (Py_ssize_t i = 0; i < PyList_GET_SIZE(list); ++i) { in InternalAssignRepeatedField()
Dmessage.cc1030 PyList_GET_ITEM(cmessage_list, PyList_GET_SIZE(cmessage_list) - 1)); in CheckAndGetInteger()
1268 const Py_ssize_t n = PyList_GET_SIZE(container->child_messages); in CheckAndGetInteger()
/external/python/cpython2/Include/
Dlistobject.h63 #define PyList_GET_SIZE(op) Py_SIZE(op) macro
Dabstract.h1161 (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
/external/python/cpython2/Objects/
Dlistobject.c268 Py_ssize_t n = PyList_GET_SIZE(self); in app1()
399 assert(PyList_GET_SIZE(pieces) > 0); in list_repr()
412 temp = PyList_GET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1); in list_repr()
414 PyList_SET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1, temp); in list_repr()
731 size = PyList_GET_SIZE(self); in list_inplace_repeat()
2556 i += PyList_GET_SIZE(self); in list_subscript()
2608 i += PyList_GET_SIZE(self); in list_ass_subscript()
2701 PyList_GET_SIZE(value)); in list_ass_subscript()
2914 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next()
2931 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
[all …]
Dtypeobject.c104 n = PyList_GET_SIZE(raw); in PyType_Modified()
410 n = PyList_GET_SIZE(subclasses); in mro_subclasses()
1403 size = PyList_GET_SIZE(list); in tail_contains()
1437 n = PyList_GET_SIZE(list); in check_duplicates()
1472 to_merge_size = PyList_GET_SIZE(to_merge); in set_mro_error()
1475 if (remain[i] < PyList_GET_SIZE(L)) { in set_mro_error()
1508 to_merge_size = PyList_GET_SIZE(to_merge); in pmerge()
1527 if (remain[i] >= PyList_GET_SIZE(cur_list)) { in pmerge()
1553 if (remain[j] < PyList_GET_SIZE(j_lst) && in pmerge()
2740 n = PyList_GET_SIZE(raw); in type_subclasses()
[all …]
Dobject.c1762 for (i = 0; i < PyList_GET_SIZE(list); ++i) { in merge_list_attr()
2392 i = PyList_GET_SIZE(list); in Py_ReprEnter()
2414 i = PyList_GET_SIZE(list); in Py_ReprLeave()
Ddictobject.c1154 assert(PyList_GET_SIZE(pieces) > 0); in dict_repr()
1167 temp = PyList_GET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1); in dict_repr()
1169 PyList_SET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1, temp); in dict_repr()
/external/python/cpython2/Modules/_sqlite/
Dstatement.c236 num_params = PyList_GET_SIZE(parameters); in pysqlite_statement_bind_parameters()
/external/python/cpython2/Doc/c-api/
Dlist.rst67 .. c:function:: Py_ssize_t PyList_GET_SIZE(PyObject *list)
/external/python/cpython2/Modules/_io/
Diobase.c843 if (PyList_GET_SIZE(chunks) == 0) { in rawiobase_readall()
/external/python/cpython2/PC/
D_msi.c239 for (i=0; i < PyList_GET_SIZE(files); i++) { in fcicreate()
/external/python/cpython2/Doc/data/
Drefcounts.dat590 PyList_GET_SIZE:int:::
591 PyList_GET_SIZE:PyObject*:list:0:

12