Home
last modified time | relevance | path

Searched refs:PyTuple_GET_ITEM (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/python/Objects/clinic/
Dcodeobject.c.h49 argcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0)); in code_new()
53 posonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 1)); in code_new()
57 kwonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 2)); in code_new()
61 nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3)); in code_new()
65 stacksize = _PyLong_AsInt(PyTuple_GET_ITEM(args, 4)); in code_new()
69 flags = _PyLong_AsInt(PyTuple_GET_ITEM(args, 5)); in code_new()
73 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 6))) { in code_new()
74 _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); in code_new()
77 code = PyTuple_GET_ITEM(args, 6); in code_new()
78 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) { in code_new()
[all …]
Denumobject.c.h74 seq = PyTuple_GET_ITEM(args, 0); in reversed_new()
/third_party/python/Modules/clinic/
Ditertoolsmodule.c.h29 iterable = PyTuple_GET_ITEM(args, 0); in pairwise_new()
99 if (!PyObject_TypeCheck(PyTuple_GET_ITEM(args, 0), &groupby_type)) { in itertools__grouper()
100 … _PyArg_BadArgument("_grouper", "argument 1", (&groupby_type)->tp_name, PyTuple_GET_ITEM(args, 0)); in itertools__grouper()
103 parent = PyTuple_GET_ITEM(args, 0); in itertools__grouper()
104 tgtkey = PyTuple_GET_ITEM(args, 1); in itertools__grouper()
136 it = PyTuple_GET_ITEM(args, 0); in itertools_teedataobject()
137 if (!PyList_Check(PyTuple_GET_ITEM(args, 1))) { in itertools_teedataobject()
138 _PyArg_BadArgument("teedataobject", "argument 2", "list", PyTuple_GET_ITEM(args, 1)); in itertools_teedataobject()
141 values = PyTuple_GET_ITEM(args, 1); in itertools_teedataobject()
142 next = PyTuple_GET_ITEM(args, 2); in itertools_teedataobject()
[all …]
D_collectionsmodule.c.h55 PyObject *iobj = _PyNumber_Index(PyTuple_GET_ITEM(args, 0)); in tuplegetter_new()
65 doc = PyTuple_GET_ITEM(args, 1); in tuplegetter_new()
/third_party/python/Modules/_sqlite/clinic/
Drow.c.h23 if (!PyObject_TypeCheck(PyTuple_GET_ITEM(args, 0), pysqlite_CursorType)) { in pysqlite_row_new()
24 …_PyArg_BadArgument("Row", "argument 1", (pysqlite_CursorType)->tp_name, PyTuple_GET_ITEM(args, 0)); in pysqlite_row_new()
27 cursor = (pysqlite_Cursor *)PyTuple_GET_ITEM(args, 0); in pysqlite_row_new()
28 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 1))) { in pysqlite_row_new()
29 _PyArg_BadArgument("Row", "argument 2", "tuple", PyTuple_GET_ITEM(args, 1)); in pysqlite_row_new()
32 data = PyTuple_GET_ITEM(args, 1); in pysqlite_row_new()
Dcursor.c.h22 if (!PyObject_TypeCheck(PyTuple_GET_ITEM(args, 0), pysqlite_ConnectionType)) { in pysqlite_cursor_init()
23 …BadArgument("Cursor", "argument 1", (pysqlite_ConnectionType)->tp_name, PyTuple_GET_ITEM(args, 0)); in pysqlite_cursor_init()
26 connection = (pysqlite_Connection *)PyTuple_GET_ITEM(args, 0); in pysqlite_cursor_init()
/third_party/python/Objects/
Dunionobject.c56 PyObject *arg = PyTuple_GET_ITEM(args, iarg); in is_generic_alias_in_args()
75 PyObject *arg = PyTuple_GET_ITEM(alias->args, iarg); in union_instancecheck()
104 PyObject *arg = PyTuple_GET_ITEM(alias->args, iarg); in union_subclasscheck()
147 PyObject *arg = PyTuple_GET_ITEM(args, i); in flatten_args()
161 PyObject *arg = PyTuple_GET_ITEM(args, i); in flatten_args()
166 PyObject* nested_arg = PyTuple_GET_ITEM(nested_args, j); in flatten_args()
201 PyObject* i_element = PyTuple_GET_ITEM(args, i); in dedup_and_flatten_args()
203 PyObject* j_element = PyTuple_GET_ITEM(new_args, j); in dedup_and_flatten_args()
339 PyObject *p = PyTuple_GET_ITEM(alias->args, i); in union_repr()
384 res = PyTuple_GET_ITEM(newargs, 0); in union_getitem()
[all …]
Dgenericaliasobject.c139 PyObject *p = PyTuple_GET_ITEM(alias->args, i); in ga_repr()
183 if (PyTuple_GET_ITEM(self, i) == item) { in tuple_index()
211 PyObject *t = PyTuple_GET_ITEM(args, iarg); in _Py_make_parameters()
239 PyObject *t2 = PyTuple_GET_ITEM(subparams, j); in _Py_make_parameters()
277 PyObject *arg = PyTuple_GET_ITEM(subparams, i); in subs_tvars()
308 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _Py_subs_parameters()
327 PyObject *arg = PyTuple_GET_ITEM(args, iarg); in _Py_subs_parameters()
612 PyObject *origin = PyTuple_GET_ITEM(args, 0); in ga_new()
613 PyObject *arguments = PyTuple_GET_ITEM(args, 1); in ga_new()
Denumobject.c129 old_index = PyTuple_GET_ITEM(result, 0); in enum_next_long()
130 old_item = PyTuple_GET_ITEM(result, 1); in enum_next_long()
179 old_index = PyTuple_GET_ITEM(result, 0); in enum_next()
180 old_item = PyTuple_GET_ITEM(result, 1); in enum_next()
Dtypeobject.c391 PyObject *b = PyTuple_GET_ITEM(bases, i); in type_mro_modified()
437 PyObject *b = PyTuple_GET_ITEM(bases, i); in assign_version_tag()
781 ob = PyTuple_GET_ITEM(new_bases, i); in type_set_bases()
1100 obj = (PyObject *) Py_TYPE(PyTuple_GET_ITEM(args, 0)); in type_call()
1538 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) in PyType_IsSubtype()
1720 if (PyTuple_GET_ITEM(tuple, j) == o) in tail_contains()
1745 PyObject *o = PyTuple_GET_ITEM(tuple, i); in check_duplicates()
1747 if (PyTuple_GET_ITEM(tuple, j) == o) { in check_duplicates()
1788 PyObject *c = PyTuple_GET_ITEM(L, remain[i]); in set_mro_error()
1865 candidate = PyTuple_GET_ITEM(cur_tuple, remain[i]); in pmerge()
[all …]
Dexceptions.c115 return PyObject_Str(PyTuple_GET_ITEM(self->args, 0)); in BaseException_str()
127 PyTuple_GET_ITEM(self->args, 0)); in BaseException_repr()
520 value = PyTuple_GET_ITEM(args, 0); in StopIteration_init()
585 Py_INCREF(PyTuple_GET_ITEM(args, 0)); in SystemExit_init()
586 Py_XSETREF(self->code, PyTuple_GET_ITEM(args, 0)); in SystemExit_init()
667 msg = PyTuple_GET_ITEM(args, 0); in ImportError_init()
866 PyObject *val = PyTuple_GET_ITEM(args, i); in oserror_parse_args()
1168 tmp = PyTuple_GET_ITEM(self->args, 0); in OSError_reduce()
1172 tmp = PyTuple_GET_ITEM(self->args, 1); in OSError_reduce()
1488 Py_INCREF(PyTuple_GET_ITEM(args, 0)); in SyntaxError_init()
[all …]
Dcodeobject.c48 PyObject *v = PyTuple_GET_ITEM(tuple, i); in intern_strings()
64 PyObject *v = PyTuple_GET_ITEM(tuple, i); in intern_string_constants()
210 PyObject *cell = PyTuple_GET_ITEM(cellvars, i); in PyCode_NewWithPosOnlyArgs()
213 PyObject *arg = PyTuple_GET_ITEM(varnames, j); in PyCode_NewWithPosOnlyArgs()
497 item = PyTuple_GET_ITEM(tup, i); in validate_and_copy_tuple()
852 item = PyTuple_GET_ITEM(op, i); in _PyCode_ConstantKey()
/third_party/python/Modules/
D_operator.c1044 obj = PyTuple_GET_ITEM(args, 0); in itemgetter_call()
1050 result = PyTuple_GET_ITEM(obj, ig->index); in itemgetter_call()
1066 item = PyTuple_GET_ITEM(ig->item, i); in itemgetter_call()
1172 PyObject *item = PyTuple_GET_ITEM(args, idx); in attrgetter_new()
1302 attr_name = PyTuple_GET_ITEM(attr, name_idx); in dotted_getattr()
1331 obj = PyTuple_GET_ITEM(args, 0); in attrgetter_call()
1333 return dotted_getattr(obj, PyTuple_GET_ITEM(ag->attr, 0)); in attrgetter_call()
1344 attr = PyTuple_GET_ITEM(ag->attr, i); in attrgetter_call()
1381 PyObject *attr = PyTuple_GET_ITEM(ag->attr, i); in attrgetter_args()
1407 PyObject *attr = dotjoinattr(PyTuple_GET_ITEM(ag->attr, 0), &attrsep); in attrgetter_repr()
[all …]
Ditertoolsmodule.c2278 PyObject *item = PyTuple_GET_ITEM(args, i); in product_new()
2286 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs); in product_new()
2364 pool = PyTuple_GET_ITEM(pools, i); in product_next()
2367 elem = PyTuple_GET_ITEM(pool, 0); in product_next()
2394 pool = PyTuple_GET_ITEM(pools, i); in product_next()
2399 elem = PyTuple_GET_ITEM(pool, 0); in product_next()
2401 oldelem = PyTuple_GET_ITEM(result, i); in product_next()
2406 elem = PyTuple_GET_ITEM(pool, indices[i]); in product_next()
2408 oldelem = PyTuple_GET_ITEM(result, i); in product_next()
2472 PyObject* indexObject = PyTuple_GET_ITEM(state, i); in product_setstate()
[all …]
D_posixsubprocess.c119 PyObject* py_fd = PyTuple_GET_ITEM(fd_sequence, seq_idx); in _sanity_check_python_fd_sequence()
146 long middle_fd = PyLong_AsLong(PyTuple_GET_ITEM(fd_sequence, middle)); in _is_fd_in_sorted_fd_sequence()
164 PyObject* fdobj = PyTuple_GET_ITEM(py_fds_to_keep, i); in make_inheritable()
226 PyObject* py_keep_fd = PyTuple_GET_ITEM(py_fds_to_keep, keep_seq_idx); in _close_fds_by_brute_force()
D_randommodule.c439 element = PyLong_AsUnsignedLong(PyTuple_GET_ITEM(state, i)); in _random_Random_setstate()
445 index = PyLong_AsLong(PyTuple_GET_ITEM(state, i)); in _random_Random_setstate()
541 arg = PyTuple_GET_ITEM(args, 0); in random_new()
Dresource.c152 curobj = PyTuple_GET_ITEM(limits, 0); in py2rlimit()
153 maxobj = PyTuple_GET_ITEM(limits, 1); in py2rlimit()
/third_party/python/Modules/_sqlite/
Drow.c144 obj = PyTuple_GET_ITEM(self->description, i); in pysqlite_row_subscript()
145 obj = PyTuple_GET_ITEM(obj, 0); in pysqlite_row_subscript()
195 if (PyList_Append(list, PyTuple_GET_ITEM(PyTuple_GET_ITEM(self->description, i), 0)) != 0) { in pysqlite_row_keys_impl()
/third_party/python/Python/
Dgetargs.c1716 current_arg = PyTuple_GET_ITEM(args, i); in vgetargskeywords()
1986 PyObject *kwname = PyTuple_GET_ITEM(kwnames, i); in find_keyword()
1996 PyObject *kwname = PyTuple_GET_ITEM(kwnames, i); in find_keyword()
2117 keyword = PyTuple_GET_ITEM(kwtuple, i - pos); in vgetargskeywordsfast_impl()
2160 keyword = PyTuple_GET_ITEM(kwtuple, i - pos); in vgetargskeywordsfast_impl()
2189 keyword = PyTuple_GET_ITEM(kwtuple, i - pos); in vgetargskeywordsfast_impl()
2221 keyword = PyTuple_GET_ITEM(kwnames, j); in vgetargskeywordsfast_impl()
2375 keyword = PyTuple_GET_ITEM(kwtuple, i - posonly); in _PyArg_UnpackKeywords()
2400 keyword = PyTuple_GET_ITEM(kwtuple, i - posonly); in _PyArg_UnpackKeywords()
2414 keyword = PyTuple_GET_ITEM(kwtuple, i - posonly); in _PyArg_UnpackKeywords()
[all …]
Dbltinmodule.c170 PyObject *base0 = PyTuple_GET_ITEM(bases, 0); in builtin___build_class__()
1237 it = PyObject_GetIter(PyTuple_GET_ITEM(args, i)); in map_new()
1252 func = PyTuple_GET_ITEM(args, 0); in map_new()
1338 PyObject *it = PyTuple_GET_ITEM(lz->iters, i); in map_next()
1370 PyObject *it = PyTuple_GET_ITEM(lz->iters, i); in map_reduce()
2677 PyObject *item = PyTuple_GET_ITEM(args, i); in zip_new()
2744 it = PyTuple_GET_ITEM(lz->ittuple, i); in zip_next()
2753 olditem = PyTuple_GET_ITEM(result, i); in zip_next()
2767 it = PyTuple_GET_ITEM(lz->ittuple, i); in zip_next()
2797 it = PyTuple_GET_ITEM(lz->ittuple, i); in zip_next()
D_warnings.c324 action = PyTuple_GET_ITEM(tmp_item, 0); in get_filter()
325 msg = PyTuple_GET_ITEM(tmp_item, 1); in get_filter()
326 cat = PyTuple_GET_ITEM(tmp_item, 2); in get_filter()
327 mod = PyTuple_GET_ITEM(tmp_item, 3); in get_filter()
328 ln_obj = PyTuple_GET_ITEM(tmp_item, 4); in get_filter()
/third_party/python/Include/cpython/
Dtupleobject.h23 #define PyTuple_GET_ITEM(op, i) (_PyTuple_CAST(op)->ob_item[i]) macro
/third_party/python/Include/
Dstructseq.h40 #define PyStructSequence_GET_ITEM(op, i) PyTuple_GET_ITEM(op, i)
/third_party/python/Modules/_io/clinic/
Dbufferedio.c.h563 reader = PyTuple_GET_ITEM(args, 0); in _io_BufferedRWPair___init__()
564 writer = PyTuple_GET_ITEM(args, 1); in _io_BufferedRWPair___init__()
570 PyObject *iobj = _PyNumber_Index(PyTuple_GET_ITEM(args, 2)); in _io_BufferedRWPair___init__()
/third_party/python/Modules/_ctypes/
D_ctypes.c1968 PyObject *name = PyTuple_GET_ITEM(args, 0); in CreateSwappedType()
1997 PyObject *v = PyTuple_GET_ITEM(args, i); in CreateSwappedType()
2400 PyObject *tp = PyTuple_GET_ITEM(ob, i); in converters_from_argtypes()
3482 PyObject *item = PyTuple_GET_ITEM(paramflags, i); in _validate_paramflags()
3494 typ = PyTuple_GET_ITEM(argtypes, i); in _validate_paramflags()
3714 if (1 <= PyTuple_GET_SIZE(args) && PyTuple_Check(PyTuple_GET_ITEM(args, 0))) in PyCFuncPtr_new()
3718 if (2 <= PyTuple_GET_SIZE(args) && PyLong_Check(PyTuple_GET_ITEM(args, 0))) in PyCFuncPtr_new()
3723 && (PyLong_Check(PyTuple_GET_ITEM(args, 0)))) { in PyCFuncPtr_new()
3725 void *ptr = PyLong_AsVoidPtr(PyTuple_GET_ITEM(args, 0)); in PyCFuncPtr_new()
3828 v = PyTuple_GET_ITEM(inargs, *pindex); in _get_arg()
[all …]

1234