Home
last modified time | relevance | path

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

123456

/external/python/cpython2/Modules/
Dcgensupport.c17 if (args == NULL || !PyTuple_Check(args) || in PyArg_GetObject()
37 if (args == NULL || !PyTuple_Check(args) || in PyArg_GetLong()
149 if (PyTuple_Check(v)) { in PyArg_GetLongArraySize()
178 if (PyTuple_Check(v)) { in PyArg_GetLongArray()
215 if (PyTuple_Check(v)) { in PyArg_GetShortArray()
252 if (PyTuple_Check(v)) { in PyArg_GetDoubleArray()
285 if (PyTuple_Check(v)) { in PyArg_GetFloatArray()
D_functoolsmodule.c164 assert (PyTuple_Check(pto->args)); in partial_call()
177 assert(PyTuple_Check(argappl)); in partial_call()
290 if (!PyTuple_Check(state) || in partial_setstate()
293 !PyTuple_Check(fnargs) || in partial_setstate()
D_tkinter.c406 else if (!PyTuple_Check(args)) { in Merge()
430 if (PyTuple_Check(v)) { in Merge()
580 if (PyTuple_Check(arg)) { in SplitObj()
1140 if (PyTuple_Check(value)) { in AsObj()
1466 else if (!PyTuple_Check(args)) { in Tkapp_CallArgs()
1607 if (PyTuple_Check(item)) in Tkapp_Call()
2327 if (PyTuple_Check(arg)) { in Tkapp_SplitList()
2396 if (PyTuple_Check(arg)) in Tkapp_Split()
3368 if (PyList_Check(o) || PyTuple_Check(o)) { in _flatten1()
3380 } else if (PyTuple_Check(item)) { in _flatten1()
[all …]
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h170 if (!PyTuple_Check(args[8])) { in code_replace()
180 if (!PyTuple_Check(args[9])) { in code_replace()
190 if (!PyTuple_Check(args[10])) { in code_replace()
200 if (!PyTuple_Check(args[11])) { in code_replace()
210 if (!PyTuple_Check(args[12])) { in code_replace()
/external/python/cpython3/Objects/
Dtupleobject.c131 if (!PyTuple_Check(op)) { in PyTuple_Size()
142 if (!PyTuple_Check(op)) { in PyTuple_GetItem()
157 if (!PyTuple_Check(op) || Py_REFCNT(op) != 1) { in PyTuple_SetItem()
454 if (op == NULL || !PyTuple_Check(op)) { in PyTuple_GetSlice()
472 if (!PyTuple_Check(bb)) { in tupleconcat()
635 if (!PyTuple_Check(v) || !PyTuple_Check(w)) in tuplerichcompare()
740 assert(PyTuple_Check(tmp)); in tuple_subtype_new()
1023 assert(PyTuple_Check(seq)); in tupleiter_next()
1123 if (!PyTuple_Check(seq)) { in tuple_iter()
Dfuncobject.c133 else if (defaults && PyTuple_Check(defaults)) { in PyFunction_SetDefaults()
194 else if (PyTuple_Check(closure)) { in PyFunction_SetClosure()
359 if (value != NULL && !PyTuple_Check(value)) { in func_set_defaults()
511 if (defaults != Py_None && !PyTuple_Check(defaults)) { in func_new_impl()
517 if (!PyTuple_Check(closure)) { in func_new_impl()
Dcall.c153 assert(keywords == NULL || PyTuple_Check(keywords) || PyDict_Check(keywords)); in _PyObject_MakeTpCall()
261 assert(PyTuple_Check(args)); in _PyObject_Call()
422 if (args != NULL && !PyTuple_Check(args)) { in PyEval_CallObjectWithKeywords()
451 if (!PyTuple_Check(args)) { in PyObject_CallObject()
465 assert(PyTuple_Check(args)); in _PyObject_Call_Prepend()
530 if (nargs == 1 && PyTuple_Check(stack[0])) { in _PyObject_CallFunctionVa()
Dgenericaliasobject.c226 if (subparams && PyTuple_Check(subparams)) { in make_parameters()
267 if (subparams && PyTuple_Check(subparams) && PyTuple_GET_SIZE(subparams)) { in subs_tvars()
313 int is_tuple = PyTuple_Check(item); in ga_getitem()
612 if (!PyTuple_Check(args)) { in Py_GenericAlias()
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.c983 assert(PyTuple_Check(map)); in map_to_dict()
1036 assert(PyTuple_Check(map)); in dict_to_map()
1085 if (!PyTuple_Check(map)) { in PyFrame_FastToLocalsWithError()
1152 if (!PyTuple_Check(map)) in PyFrame_LocalsToFast()
/external/python/cpython2/Objects/
Dtupleobject.c113 if (!PyTuple_Check(op)) { in PyTuple_Size()
124 if (!PyTuple_Check(op)) { in PyTuple_GetItem()
140 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
425 if (op == NULL || !PyTuple_Check(op)) { in PyTuple_GetSlice()
439 if (!PyTuple_Check(bb)) { in tupleconcat()
572 if (!PyTuple_Check(v) || !PyTuple_Check(w)) { in tuplerichcompare()
668 assert(PyTuple_Check(tmp)); in tuple_subtype_new()
957 assert(PyTuple_Check(seq)); in tupleiter_next()
1025 if (!PyTuple_Check(seq)) { in tuple_iter()
Dfuncobject.c112 else if (defaults && PyTuple_Check(defaults)) { in PyFunction_SetDefaults()
142 else if (PyTuple_Check(closure)) { in PyFunction_SetClosure()
318 if (value != NULL && !PyTuple_Check(value)) { in func_set_defaults()
386 if (defaults != Py_None && !PyTuple_Check(defaults)) { in func_new()
392 if (!PyTuple_Check(closure)) { in func_new()
494 if (argdefs != NULL && PyTuple_Check(argdefs)) { in function_call()
Dcodeobject.c103 consts == NULL || !PyTuple_Check(consts) || in PyCode_New()
104 names == NULL || !PyTuple_Check(names) || in PyCode_New()
105 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_New()
106 freevars == NULL || !PyTuple_Check(freevars) || in PyCode_New()
107 cellvars == NULL || !PyTuple_Check(cellvars) || in PyCode_New()
Dframeobject.c827 assert(PyTuple_Check(map)); in map_to_dict()
875 assert(PyTuple_Check(map)); in dict_to_map()
924 if (!PyTuple_Check(map)) in PyFrame_FastToLocals()
971 if (!PyTuple_Check(map)) in PyFrame_LocalsToFast()
/external/python/cpython3/Include/cpython/
Dtupleobject.h23 #define _PyTuple_CAST(op) (assert(PyTuple_Check(op)), (PyTupleObject *)(op))
/external/python/cpython3/Include/
Dtupleobject.h26 #define PyTuple_Check(op) \ macro
/external/python/cpython2/Include/
Dtupleobject.h36 #define PyTuple_Check(op) \ macro
/external/python/cpython3/Modules/
D_functoolsmodule.c49 assert(PyTuple_Check(pargs)); in partial_new()
82 assert(PyTuple_Check(pto->args)); in partial_new()
232 assert(PyTuple_Check(pto->args)); in partial_call()
323 assert (PyTuple_Check(pto->args)); in partial_repr()
371 if (!PyTuple_Check(state) || in partial_setstate()
374 !PyTuple_Check(fnargs) || in partial_setstate()
D_tkinter.c500 if (PyTuple_Check(arg)) { in SplitObj()
1058 if (PyTuple_Check(value) || PyList_Check(value)) { in AsObj()
1067 PyTuple_Check(value) ? "tuple is too long" : in AsObj()
1349 else if (!(PyTuple_Check(args) || PyList_Check(args))) { in Tkapp_CallArgs()
1362 PyTuple_Check(args) ? "tuple is too long" : in Tkapp_CallArgs()
1495 if (PyTuple_Check(item)) in Tkapp_Call()
2247 if (PyTuple_Check(arg)) { in _tkinter_tkapp_splitlist()
2334 if (PyTuple_Check(arg) || PyList_Check(arg)) in _tkinter_tkapp_split()
3089 } else if (PyTuple_Check(item) || PyList_Check(item)) { in _flatten1()
3098 if (PyList_Check(o) || PyTuple_Check(o)) { in _flatten1()
/external/python/cpython2/Python/
Dgetargs.c316 if (!PyTuple_Check(args)) { in vgetargs1()
1456 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_ParseTupleAndKeywords()
1480 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1506 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_VaParseTupleAndKeywords()
1538 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1575 assert(args != NULL && PyTuple_Check(args)); in vgetargskeywords()
1865 if (!PyTuple_Check(args)) { in PyArg_UnpackTuple()
Derrors.c91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
183 else if (PyTuple_Check(value)) { in PyErr_NormalizeException()
606 if (PyTuple_Check(base)) { in PyErr_NewException()
Dcodecs.c154 if (!PyTuple_Check(result) || PyTuple_GET_SIZE(result) != 4) { in _PyCodec_Lookup()
359 if (!PyTuple_Check(result) || in _PyCodec_EncodeInternal()
402 if (!PyTuple_Check(result) || in _PyCodec_DecodeInternal()
/external/python/cpython3/Python/
Dgetargs.c420 if (!PyTuple_Check(args)) { in vgetargs1()
1458 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_ParseTupleAndKeywords()
1482 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1508 if ((args == NULL || !PyTuple_Check(args)) || in PyArg_VaParseTupleAndKeywords()
1533 if ((args == NULL || !PyTuple_Check(args)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1668 assert(args != NULL && PyTuple_Check(args)); in vgetargskeywords()
2112 if (kwnames != NULL && !PyTuple_Check(kwnames)) { in vgetargskeywordsfast_impl()
2326 || !PyTuple_Check(args) in vgetargskeywordsfast()
2365 if (kwnames != NULL && !PyTuple_Check(kwnames)) { in _PyArg_UnpackKeywords()
2757 if (!PyTuple_Check(args)) { in PyArg_UnpackTuple()
Dast_opt.c100 if (PyTuple_Check(obj)) { in check_complexity()
138 else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { in safe_multiply()
139 Py_ssize_t size = PyTuple_Check(w) ? PyTuple_GET_SIZE(w) : in safe_multiply()
162 (PyTuple_Check(v) || PyFrozenSet_Check(v) || in safe_multiply()
/external/python/cffi/c/
Drealize_c_type.c239 assert(PyTuple_Check(x)); in unwrap_fn_as_fnptr()
444 assert(PyTuple_Check(y)); /* from _CFFI_OP_FUNCTION */ in realize_c_type_or_func()
666 assert(PyTuple_Check(x)); /* from _CFFI_OP_FUNCTION */ in realize_c_func_return_type()

123456