Home
last modified time | relevance | path

Searched refs:PyTuple_Check (Results 1 – 25 of 70) sorted by relevance

123

/third_party/python/Objects/clinic/
Dcodeobject.c.h78 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) { in code_new()
83 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 8))) { in code_new()
88 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 9))) { in code_new()
121 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 14))) { in code_new()
129 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 15))) { in code_new()
271 if (!PyTuple_Check(args[8])) { in code_replace()
281 if (!PyTuple_Check(args[9])) { in code_replace()
291 if (!PyTuple_Check(args[10])) { in code_replace()
301 if (!PyTuple_Check(args[11])) { in code_replace()
311 if (!PyTuple_Check(args[12])) { in code_replace()
/third_party/python/Objects/
Dtupleobject.c171 if (!PyTuple_Check(op)) { in PyTuple_Size()
182 if (!PyTuple_Check(op)) { in PyTuple_GetItem()
197 if (!PyTuple_Check(op) || Py_REFCNT(op) != 1) { in PyTuple_SetItem()
500 if (op == NULL || !PyTuple_Check(op)) { in PyTuple_GetSlice()
518 if (!PyTuple_Check(bb)) { in tupleconcat()
680 if (!PyTuple_Check(v) || !PyTuple_Check(w)) in tuplerichcompare()
789 assert(PyTuple_Check(tmp)); in tuple_subtype_new()
1089 assert(PyTuple_Check(seq)); in tupleiter_next()
1189 if (!PyTuple_Check(seq)) { in tuple_iter()
Dfuncobject.c31 assert(PyTuple_Check(consts)); in PyFunction_NewWithQualName()
150 else if (defaults && PyTuple_Check(defaults)) { in PyFunction_SetDefaults()
211 else if (PyTuple_Check(closure)) { in PyFunction_SetClosure()
408 if (value != NULL && !PyTuple_Check(value)) { in func_set_defaults()
559 if (defaults != Py_None && !PyTuple_Check(defaults)) { in func_new_impl()
565 if (!PyTuple_Check(closure)) { in func_new_impl()
Dcall.c177 assert(keywords == NULL || PyTuple_Check(keywords) || PyDict_Check(keywords)); in _PyObject_MakeTpCall()
286 assert(PyTuple_Check(args)); in _PyObject_Call()
365 if (args != NULL && !PyTuple_Check(args)) { in PyEval_CallObjectWithKeywords()
394 if (!PyTuple_Check(args)) { in PyObject_CallObject()
408 assert(PyTuple_Check(args)); in _PyObject_Call_Prepend()
473 if (nargs == 1 && PyTuple_Check(stack[0])) { in _PyObject_CallFunctionVa()
Dgenericaliasobject.c227 if (subparams && PyTuple_Check(subparams)) { in _Py_make_parameters()
268 if (subparams && PyTuple_Check(subparams) && PyTuple_GET_SIZE(subparams)) { in subs_tvars()
306 int is_tuple = PyTuple_Check(item); in _Py_subs_parameters()
585 if (!PyTuple_Check(args)) { in setup_ga()
Dcodeobject.c133 consts == NULL || !PyTuple_Check(consts) || in PyCode_NewWithPosOnlyArgs()
134 names == NULL || !PyTuple_Check(names) || in PyCode_NewWithPosOnlyArgs()
135 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_NewWithPosOnlyArgs()
136 freevars == NULL || !PyTuple_Check(freevars) || in PyCode_NewWithPosOnlyArgs()
137 cellvars == NULL || !PyTuple_Check(cellvars) || in PyCode_NewWithPosOnlyArgs()
Dframeobject.c932 assert(PyTuple_Check(map)); in map_to_dict()
985 assert(PyTuple_Check(map)); in dict_to_map()
1034 if (!PyTuple_Check(map)) { in PyFrame_FastToLocalsWithError()
1101 if (!PyTuple_Check(map)) in PyFrame_LocalsToFast()
Dtypeobject.c765 if (!PyTuple_Check(new_bases)) { in type_set_bases()
1095 assert(args != NULL && PyTuple_Check(args)); in type_call()
1535 assert(PyTuple_Check(mro)); in PyType_IsSubtype()
1911 assert(PyTuple_Check(bases)); in mro_implementation()
1921 assert(PyTuple_Check(base->tp_mro)); in mro_implementation()
2167 assert(PyTuple_Check(bases)); in best_base()
2434 assert(args != NULL && PyTuple_Check(args)); in type_init()
2437 if (kwds != NULL && PyTuple_Check(args) && PyTuple_GET_SIZE(args) == 1 && in type_init()
2444 if (args != NULL && PyTuple_Check(args) && in type_init()
3285 assert(args != NULL && PyTuple_Check(args)); in type_new()
[all …]
/third_party/python/Include/cpython/
Dtupleobject.h19 #define _PyTuple_CAST(op) (assert(PyTuple_Check(op)), (PyTupleObject *)(op))
Dabstract.h106 assert(kwnames == NULL || PyTuple_Check(kwnames)); in _PyObject_VectorcallTstate()
/third_party/python/Include/
Dtupleobject.h26 #define PyTuple_Check(op) \ macro
/third_party/python/Modules/_sqlite/clinic/
Drow.c.h28 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 1))) { in pysqlite_row_new()
/third_party/python/Python/
Dgetargs.c420 if (!PyTuple_Check(args)) { in vgetargs1()
1383 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_ParseTupleAndKeywords()
1407 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1433 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_VaParseTupleAndKeywords()
1458 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1593 assert(args != NULL && PyTuple_Check(args)); in vgetargskeywords()
2037 if (kwnames != NULL && !PyTuple_Check(kwnames)) { in vgetargskeywordsfast_impl()
2251 || !PyTuple_Check(args) in vgetargskeywordsfast()
2290 if (kwnames != NULL && !PyTuple_Check(kwnames)) { in _PyArg_UnpackKeywords()
2679 if (!PyTuple_Check(args)) { in PyArg_UnpackTuple()
Dast_opt.c112 if (PyTuple_Check(obj)) { in check_complexity()
150 else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { in safe_multiply()
151 Py_ssize_t size = PyTuple_Check(w) ? PyTuple_GET_SIZE(w) : in safe_multiply()
174 (PyTuple_Check(v) || PyFrozenSet_Check(v) || in safe_multiply()
Dcodecs.c183 if (!PyTuple_Check(result) || PyTuple_GET_SIZE(result) != 4) { in _PyCodec_Lookup()
426 if (!PyTuple_Check(result) || in _PyCodec_EncodeInternal()
471 if (!PyTuple_Check(result) || in _PyCodec_DecodeInternal()
/third_party/python/Modules/
D_functoolsmodule.c84 assert(PyTuple_Check(pargs)); in partial_new()
117 assert(PyTuple_Check(pto->args)); in partial_new()
288 assert(PyTuple_Check(pto->args)); in partial_call()
375 assert (PyTuple_Check(pto->args)); in partial_repr()
423 if (!PyTuple_Check(state) || in partial_setstate()
426 !PyTuple_Check(fnargs) || in partial_setstate()
D_tkinter.c557 if (PyTuple_Check(arg)) { in SplitObj()
1115 if (PyTuple_Check(value) || PyList_Check(value)) { in AsObj()
1124 PyTuple_Check(value) ? "tuple is too long" : in AsObj()
1406 else if (!(PyTuple_Check(args) || PyList_Check(args))) { in Tkapp_CallArgs()
1419 PyTuple_Check(args) ? "tuple is too long" : in Tkapp_CallArgs()
1552 if (PyTuple_Check(item)) in Tkapp_Call()
2304 if (PyTuple_Check(arg)) { in _tkinter_tkapp_splitlist()
2391 if (PyTuple_Check(arg) || PyList_Check(arg)) in _tkinter_tkapp_split()
3146 } else if (PyTuple_Check(item) || PyList_Check(item)) { in _flatten1()
3155 if (PyList_Check(o) || PyTuple_Check(o)) { in _flatten1()
D_testbuffer.c30 if (!PyList_Check(v) && !PyTuple_Check(v)) { \
313 assert(PyList_Check(items) || PyTuple_Check(items)); in pack_from_list()
357 else if ((PyList_Check(item) || PyTuple_Check(item)) && in pack_from_list()
439 else if ((PyList_Check(item) || PyTuple_Check(item)) && in pack_single()
1787 if (PyTuple_Check(key) && PyTuple_GET_SIZE(key) == 0) { in ndarray_subscript()
1830 else if (PyTuple_Check(key)) { in ndarray_subscript()
1884 (PyTuple_Check(key) && PyTuple_GET_SIZE(key) == 0)) { in ndarray_ass_subscript()
Daudioop.c1388 if (!PyTuple_Check(state)) { in audioop_ratecv_impl()
1403 if (!PyTuple_Check(channel)) { in audioop_ratecv_impl()
1680 else if (!PyTuple_Check(state)) { in audioop_lin2adpcm_impl()
1810 else if (!PyTuple_Check(state)) { in audioop_adpcm2lin_impl()
D_abc.c358 if (!PyTuple_Check(bases)) { in compute_abstract_methods()
754 assert(PyTuple_Check(mro)); in _abc__abc_subclasscheck_impl()
Ditertoolsmodule.c346 if (!PyTuple_Check(state)) { in groupby_setstate()
938 if (!PyTuple_Check(state)) { in tee_setstate()
1203 if (!PyTuple_Check(state)) { in cycle_setstate()
2134 if (!PyTuple_Check(state)) { in chain_setstate()
2466 if (!PyTuple_Check(state) || PyTuple_GET_SIZE(state) != n) { in product_setstate()
2796 if (!PyTuple_Check(state) || PyTuple_GET_SIZE(state) != lz->r) { in combinations_setstate()
3125 if (!PyTuple_Check(state) || PyTuple_GET_SIZE(state) != lz->r) in cwr_setstate()
3497 if (!PyTuple_Check(state)) { in permutations_setstate()
4570 assert(PyTuple_Check(args)); in zip_longest_new()
D_pickle.c3133 if (!PyTuple_Check(obj) || PyTuple_Size(obj) != 2) { in batch_dict()
3161 if (!PyTuple_Check(firstitem) || PyTuple_Size(firstitem) != 2) { in batch_dict()
3199 if (!PyTuple_Check(obj) || PyTuple_Size(obj) != 2) { in batch_dict()
3527 if (!PyTuple_Check(item) || PyTuple_GET_SIZE(item) != 2) { in fix_imports()
3970 if (!PyTuple_Check(argtup)) { in save_reduce()
4045 if (!PyTuple_Check(args)) { in save_reduce()
4461 if (!PyTuple_Check(reduce_value)) { in save()
4993 if (!PyTuple_Check(value) || PyTuple_GET_SIZE(value) != 2) { in Pickler_set_memo()
5811 assert(PyTuple_Check(args)); in instantiate()
5957 if (!PyTuple_Check(args)) { in load_newobj()
[all …]
/third_party/boost/libs/python/doc/reference/
Dwith_custodian_and_ward.qbk29 [[Requires][`PyTuple_Check(args) != 0`]]
56 [[Requires][`PyTuple_Check(args) != 0`, `result != 0`]]
Dreturn_arg.qbk28 [[Requires][`PyTuple_Check(args) != 0` and `PyTuple_Size(args) != 0`]]
Dreturn_internal_reference.qbk26 [[Requires][`PyTuple_Check(args) != 0`]]

123