Home
last modified time | relevance | path

Searched refs:PyDict_Check (Results 1 – 25 of 74) sorted by relevance

123

/external/python/cpython2/Objects/
Ddictobject.c714 if (!PyDict_Check(op)) in PyDict_GetItem()
762 if (!PyDict_Check(op)) { in _PyDict_GetItemWithError()
832 if (!PyDict_Check(op)) { in PyDict_SetItem()
874 if (!PyDict_Check(op)) { in PyDict_DelItem()
906 if (!PyDict_Check(op)) { in _PyDict_DelItemIf()
946 if (!PyDict_Check(op)) in PyDict_Clear()
1025 if (!PyDict_Check(op)) in PyDict_Next()
1052 if (!PyDict_Check(op)) in _PyDict_Next()
1558 assert(PyDict_Check(d)); in PyDict_MergeFromSeq2()
1644 if (a == NULL || !PyDict_Check(a) || b == NULL) { in PyDict_Merge()
[all …]
Dframeobject.c667 if (code == NULL || globals == NULL || !PyDict_Check(globals) || in PyFrame_New()
678 assert(!builtins || PyDict_Check(builtins)); in PyFrame_New()
680 else if (!PyDict_Check(builtins)) in PyFrame_New()
700 assert(builtins != NULL && PyDict_Check(builtins)); in PyFrame_New()
828 assert(PyDict_Check(dict)); in map_to_dict()
876 assert(PyDict_Check(dict)); in dict_to_map()
Dfuncobject.c212 if (!PyDict_Check(value)) { in func_set_dict()
503 if (kw != NULL && PyDict_Check(kw)) { in function_call()
Dobject.c1387 assert(dict && PyDict_Check(dict)); in _PyObject_GenericGetAttrWithDict()
1699 assert(PyDict_Check(dict)); in merge_class_dict()
1757 assert(PyDict_Check(dict)); in merge_list_attr()
1842 if (PyDict_Check(dict)) in _specialized_dir_module()
1873 else if (!PyDict_Check(dict)) { in _generic_dir()
Dclassobject.c54 if (dict == NULL || !PyDict_Check(dict)) { in PyClass_New()
298 if (v == NULL || !PyDict_Check(v)) in set_dict()
529 if (!PyDict_Check(dict)) { in PyInstance_NewRaw()
571 || (kw != NULL && (!PyDict_Check(kw) || in PyInstance_New()
620 else if (!PyDict_Check(dict)) { in instance_new()
846 if (v == NULL || !PyDict_Check(v)) { in instance_setattr()
/external/python/cpython3/Objects/
Ddictobject.c915 assert(PyDict_Check(dict)); in _PyDict_HasOnlyStringKeys()
1298 if (!PyDict_Check(op)) in PyDict_GetItem()
1347 if (!PyDict_Check(op)) { in _PyDict_GetItem_KnownHash()
1371 if (!PyDict_Check(op)) { in PyDict_GetItemWithError()
1447 if (!PyDict_Check(op)) { in PyDict_SetItem()
1472 if (!PyDict_Check(op)) { in _PyDict_SetItem_KnownHash()
1532 if (!PyDict_Check(op)) { in _PyDict_DelItem_KnownHash()
1573 if (!PyDict_Check(op)) { in _PyDict_DelItemIf()
1621 if (!PyDict_Check(op)) in PyDict_Clear()
1663 if (!PyDict_Check(op)) in _PyDict_Next()
[all …]
Dfuncobject.c155 else if (defaults && PyDict_Check(defaults)) { in PyFunction_SetKwDefaults()
218 else if (annotations && PyDict_Check(annotations)) { in PyFunction_SetAnnotations()
367 if (value != NULL && !PyDict_Check(value)) { in func_set_kwdefaults()
397 if (value != NULL && !PyDict_Check(value)) { in func_set_annotations()
Dcall.c95 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_FastCallDict()
223 assert(kwargs == NULL || PyDict_Check(kwargs)); in PyObject_Call()
314 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyFunction_FastCallDict()
458 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyMethodDef_RawFastCallDict()
742 assert(kwargs == NULL || PyDict_Check(kwargs)); in cfunction_call_varargs()
816 if (kwargs != NULL && !PyDict_Check(kwargs)) { in PyEval_CallObjectWithKeywords()
Dframeobject.c666 if (code == NULL || globals == NULL || !PyDict_Check(globals) || in _PyFrame_New_NoTrack()
836 assert(PyDict_Check(dict)); in map_to_dict()
889 assert(PyDict_Check(dict)); in dict_to_map()
Dtypeobject.c939 (PyDict_Check(kwds) && PyDict_GET_SIZE(kwds) == 0))) in type_call()
2195 if (value != NULL && !PyDict_Check(value)) { in subtype_setdict()
2279 assert(kwds == NULL || PyDict_Check(kwds)); in type_init()
2282 PyDict_Check(kwds) && PyDict_GET_SIZE(kwds) != 0) { in type_init()
2363 assert(kwds == NULL || PyDict_Check(kwds)); in type_new()
3056 assert(dict && PyDict_Check(dict)); in find_name_in_mro()
3363 assert(PyDict_Check(dict)); in merge_class_dict()
3648 (kwds && PyDict_Check(kwds) && PyDict_GET_SIZE(kwds)); in excess_args()
4299 if (!PyDict_Check(*kwargs)) { in _PyObject_GetNewArguments()
4363 if (!PyDict_Check(obj)) { in _PyObject_GetItemsIter()
[all …]
/external/python/cpython2/Modules/
D_functoolsmodule.c165 assert (PyDict_Check(pto->kw)); in partial_call()
253 if (!PyDict_Check(value)) { in partial_set_dict()
294 (kw != Py_None && !PyDict_Check(kw))) in partial_setstate()
/external/tensorflow/tensorflow/python/util/
Dutil.cc234 if (PyDict_Check(o)) return true; in IsMappingHelper()
543 if (PyDict_Check(nested)) { in GetValueIterator()
556 if (PyDict_Check(nested)) { in GetValueIteratorForData()
720 if (PyDict_Check(o1) && PyDict_Check(o2)) { in AssertSameStructureHelper()
/external/python/cpython3/Include/
Ddictobject.h58 #define PyDict_Check(op) \ macro
112 #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc28 DCHECK(PyDict_Check(code_to_exc_type_map)); in Init()
/external/python/cpython3/Modules/_sqlite/
Dstatement.c220 …if (PyTuple_CheckExact(parameters) || PyList_CheckExact(parameters) || (!PyDict_Check(parameters) … in pysqlite_statement_bind_parameters()
272 } else if (PyDict_Check(parameters)) { in pysqlite_statement_bind_parameters()
/external/tensorflow/tensorflow/python/client/
Dtf_sessionrun_wrapper.i33 if (!PyDict_Check($input)) {
/external/python/cpython2/Modules/_sqlite/
Dstatement.c231 …if (PyTuple_CheckExact(parameters) || PyList_CheckExact(parameters) || (!PyDict_Check(parameters) … in pysqlite_statement_bind_parameters()
281 } else if (PyDict_Check(parameters)) { in pysqlite_statement_bind_parameters()
/external/python/cpython3/Python/
Dgetargs.c1408 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_ParseTupleAndKeywords()
1432 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1458 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_VaParseTupleAndKeywords()
1483 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1583 if (!PyDict_Check(kwargs)) { in PyArg_ValidateKeywordArguments()
1618 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywords()
2043 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywordsfast_impl()
2251 || (keywords != NULL && !PyDict_Check(keywords))) in vgetargskeywordsfast()
D_warnings.c109 if (!PyDict_Check(registry)) { in get_once_registry()
488 if (registry && !PyDict_Check(registry) && (registry != Py_None)) { in warn_explicit()
706 assert(PyDict_Check(globals)); in setup_context()
959 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit()
/external/python/cpython2/Include/
Ddictobject.h99 #define PyDict_Check(op) \ macro
/external/python/cpython2/Python/
D_warnings.c75 if (!PyDict_Check(registry)) { in get_once_registry()
304 if (registry && !PyDict_Check(registry) && (registry != Py_None)) { in warn_explicit()
472 assert(PyDict_Check(globals)); in setup_context()
Dgetargs.c1457 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_ParseTupleAndKeywords()
1481 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1507 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_VaParseTupleAndKeywords()
1539 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1576 assert(keywords == NULL || PyDict_Check(keywords)); in vgetargskeywords()
/external/python/cpython2/Doc/c-api/
Dconcrete.rst14 dictionary, use :c:func:`PyDict_Check`. The chapter is structured like the
/external/python/cpython3/Doc/c-api/
Dconcrete.rst14 dictionary, use :c:func:`PyDict_Check`. The chapter is structured like the
/external/python/cpython3/Modules/
D_functoolsmodule.c49 assert(PyDict_Check(pkw)); in partial_new()
198 assert (PyDict_Check(pto->kw)); in partial_call()
295 assert (PyDict_Check(pto->kw)); in partial_repr()
338 (kw != Py_None && !PyDict_Check(kw))) in partial_setstate()

123