Home
last modified time | relevance | path

Searched refs:PyList_GET_ITEM (Results 1 – 25 of 75) sorted by relevance

123

/external/python/cpython2/Modules/
D_heapqmodule.c51 newitem = PyList_GET_ITEM(heap, pos); in _siftdown()
54 parent = PyList_GET_ITEM(heap, parentpos); in _siftdown()
65 parent = PyList_GET_ITEM(heap, parentpos); in _siftdown()
66 newitem = PyList_GET_ITEM(heap, pos); in _siftdown()
97 PyList_GET_ITEM(heap, childpos), in _siftup()
98 PyList_GET_ITEM(heap, rightpos)); in _siftup()
110 tmp1 = PyList_GET_ITEM(heap, childpos); in _siftup()
111 tmp2 = PyList_GET_ITEM(heap, pos); in _siftup()
163 lastelt = PyList_GET_ITEM(heap, n-1) ; in heappop()
170 returnitem = PyList_GET_ITEM(heap, 0); in heappop()
[all …]
/external/python/cpython2/Python/
Dpeephole.c57 constant = PyList_GET_ITEM(consts, arg); in tuple_of_constants()
100 v = PyList_GET_ITEM(consts, GETARG(codestr, 0)); in fold_binops_on_constants()
101 w = PyList_GET_ITEM(consts, GETARG(codestr, 3)); in fold_binops_on_constants()
201 v = PyList_GET_ITEM(consts, GETARG(codestr, 0)); in fold_unaryops_on_constants()
401 if (PyList_GET_ITEM(consts, j) == Py_None) in PyCode_Optimize()
408 assert(PyList_GET_ITEM(consts, j) == Py_None); in PyCode_Optimize()
422 !PyObject_IsTrue(PyList_GET_ITEM(consts, j))) in PyCode_Optimize()
DPython-ast.c3352 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
3392 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
3455 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
3568 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3597 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3653 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3682 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3711 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3774 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
3815 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
[all …]
D_warnings.c137 tmp_item = *item = PyList_GET_ITEM(_filters, i); in get_filter()
878 if (PyList_GET_ITEM(filters, x) == NULL) { in init_filters()
/external/python/cpython3/Modules/
D_heapqmodule.c141 lastelt = PyList_GET_ITEM(heap, n-1) ; in heappop_internal()
151 returnitem = PyList_GET_ITEM(heap, 0); in heappop_internal()
187 returnitem = PyList_GET_ITEM(heap, 0); in heapreplace_internal()
232 cmp = PyObject_RichCompareBool(PyList_GET_ITEM(heap, 0), item, Py_LT); in heappushpop()
245 returnitem = PyList_GET_ITEM(heap, 0); in heappushpop()
D_abc.c284 PyList_GET_ITEM(items, pos), in compute_abstract_methods()
676 PyObject *scls = PyList_GET_ITEM(subclasses, pos); in _abc__abc_subclasscheck_impl()
D_queuemodule.c139 item = PyList_GET_ITEM(self->lst, self->lst_pos); in simplequeue_pop_item()
D_asynciomodule.c447 PyObject *cb_tup = PyList_GET_ITEM(fut->fut_callbacks, i); in future_schedule_callbacks()
962 PyObject *cb_tup = PyList_GET_ITEM(self->fut_callbacks, 0); in _asyncio_Future_remove_done_callback()
984 PyObject *item = PyList_GET_ITEM(self->fut_callbacks, i); in _asyncio_Future_remove_done_callback()
1211 PyObject *cb = PyList_GET_ITEM(fut->fut_callbacks, i); in FutureObj_get_callbacks()
/external/python/cpython3/Python/
DPython-ast.c3980 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
4021 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
4086 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_mod()
4203 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4233 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4318 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4348 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4420 res = obj2ast_expr(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4450 res = obj2ast_keyword(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
4480 res = obj2ast_stmt(PyList_GET_ITEM(tmp, i), &val, arena); in obj2ast_stmt()
[all …]
Dpeephole.c150 PyObject *constant = PyList_GET_ITEM(consts, arg); in fold_tuple_on_constants()
294 !PyObject_IsTrue(PyList_GET_ITEM(consts, get_arg(codestr, i)))) in PyCode_Optimize()
Dpystate.c460 res = PyList_GET_ITEM(state->modules_by_index, index); in PyState_FindModule()
503 if(module == PyList_GET_ITEM(state->modules_by_index, index)) { in PyState_AddModule()
547 PyObject *m = PyList_GET_ITEM(state->modules_by_index, i); in _PyState_ClearModules()
Dmarshal.c502 w_object(PyList_GET_ITEM(v, i), p); in w_complex_object()
913 PyObject *tmp = PyList_GET_ITEM(p->refs, idx); in r_ref_insert()
1460 v = PyList_GET_ITEM(p->refs, n); in r_object()
D_warnings.c181 tmp_item = PyList_GET_ITEM(filters, i); in get_filter()
1283 if (PyList_GET_ITEM(filters, x) == NULL) { in init_filters()
/external/python/cpython2/Include/
Dlistobject.h61 #define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i]) macro
Dabstract.h1168 (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc354 PyList_GET_ITEM(self->child_messages, i)); in ReorderAttached()
475 PyList_GET_ITEM(self->child_messages, i)); in Release()
495 PyObject* msg = PyList_GET_ITEM(self->child_messages, i); in SetOwner()
Dmessage.cc1015 PyObject* tmp = PyList_GET_ITEM(cmessage_list, i); in CheckAndGetInteger()
1017 PyList_GET_ITEM(cmessage_list, to)); in CheckAndGetInteger()
1030 PyList_GET_ITEM(cmessage_list, PyList_GET_SIZE(cmessage_list) - 1)); in CheckAndGetInteger()
1271 PyList_GET_ITEM(container->child_messages, i)); in CheckAndGetInteger()
/external/python/cpython3/Include/
Dlistobject.h72 #define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i]) macro
/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc87 PyObject* v = PyList_GET_ITEM(ret_val, i); in TryAppendTraceback()
/external/python/cpython2/PC/
D_subprocess.c360 PyObject* key = PyList_GET_ITEM(keys, i); in getenvironment()
361 PyObject* value = PyList_GET_ITEM(values, i); in getenvironment()
/external/python/cpython2/Objects/
Dtypeobject.c106 ref = PyList_GET_ITEM(raw, i); in PyType_Modified()
412 ref = PyList_GET_ITEM(subclasses, i); in mro_subclasses()
522 PyArg_UnpackTuple(PyList_GET_ITEM(temp, i), in type_set_bases()
1406 if (PyList_GET_ITEM(list, j) == o) in tail_contains()
1439 PyObject *o = PyList_GET_ITEM(list, i); in check_duplicates()
1441 if (PyList_GET_ITEM(list, j) == o) { in check_duplicates()
1474 PyObject *L = PyList_GET_ITEM(to_merge, i); in set_mro_error()
1476 PyObject *c = PyList_GET_ITEM(L, remain[i]); in set_mro_error()
1525 PyObject *cur_list = PyList_GET_ITEM(to_merge, i); in pmerge()
1539 candidate = PyList_GET_ITEM(cur_list, remain[i]); in pmerge()
[all …]
Dlistobject.c400 temp = PyList_GET_ITEM(pieces, 0); in list_repr()
409 temp = PyList_GET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1); in list_repr()
441 cmp = PyObject_RichCompareBool(el, PyList_GET_ITEM(a, i), in list_contains()
2663 garbage[i] = PyList_GET_ITEM(self, cur); in list_ass_subscript()
2914 item = PyList_GET_ITEM(seq, it->it_index); in listiter_next()
3035 item = PyList_GET_ITEM(seq, index); in listreviter_next()
/external/python/cpython3/Modules/_sqlite/
Dstatement.c241 current_param = PyList_GET_ITEM(parameters, i); in pysqlite_statement_bind_parameters()
/external/python/cpython2/Modules/_sqlite/
Dstatement.c250 current_param = PyList_GET_ITEM(parameters, i); in pysqlite_statement_bind_parameters()
/external/python/cpython3/Doc/c-api/
Dlist.rst67 .. c:function:: PyObject* PyList_GET_ITEM(PyObject *list, Py_ssize_t i)

123