Home
last modified time | relevance | path

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

1234

/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()
/external/tensorflow/tensorflow/python/util/
Dnest.cc59 if (PyDict_Check(o)) { in GetKeysFromDictOrMapping()
78 if (!PyDict_Check(dict) && !swig::IsMapping(dict)) { in FlattenDictItems()
Dutil.cc239 if (PyDict_Check(o)) return true; in IsMappingHelper()
249 if (PyDict_Check(o)) return true; in IsMutableMappingHelper()
600 if (PyDict_Check(nested)) { in GetValueIterator()
613 if (PyDict_Check(nested)) { in GetValueIteratorForData()
811 if (PyDict_Check(o1) && PyDict_Check(o2)) { in AssertSameStructureHelper()
/external/python/cpython3/Objects/
Ddictobject.c475 CHECK(PyDict_Check(op)); in _PyDict_CheckConsistency()
961 assert(PyDict_Check(dict)); in _PyDict_HasOnlyStringKeys()
1390 if (!PyDict_Check(op)) in PyDict_GetItem()
1439 if (!PyDict_Check(op)) { in _PyDict_GetItem_KnownHash()
1463 if (!PyDict_Check(op)) { in PyDict_GetItemWithError()
1554 if (!PyDict_Check(op)) { in PyDict_SetItem()
1582 if (!PyDict_Check(op)) { in _PyDict_SetItem_KnownHash()
1645 if (!PyDict_Check(op)) { in _PyDict_DelItem_KnownHash()
1686 if (!PyDict_Check(op)) { in _PyDict_DelItemIf()
1734 if (!PyDict_Check(op)) in PyDict_Clear()
[all …]
Dcall.c108 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_FastCallDictTstate()
153 assert(keywords == NULL || PyTuple_Check(keywords) || PyDict_Check(keywords)); in _PyObject_MakeTpCall()
171 if (keywords == NULL || PyDict_Check(keywords)) { in _PyObject_MakeTpCall()
262 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_Call()
428 if (kwargs != NULL && !PyDict_Check(kwargs)) { in PyEval_CallObjectWithKeywords()
953 assert(PyDict_Check(kwargs)); in _PyStack_UnpackDict()
Dfuncobject.c163 else if (defaults && PyDict_Check(defaults)) { in PyFunction_SetKwDefaults()
226 else if (annotations && PyDict_Check(annotations)) { in PyFunction_SetAnnotations()
400 if (value != NULL && !PyDict_Check(value)) { in func_set_kwdefaults()
440 if (value != NULL && !PyDict_Check(value)) { in func_set_annotations()
/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/python/cpython3/Modules/clinic/
D_weakref.c.h56 if (!PyDict_Check(args[0])) { in _weakref__remove_dead_weakref()
D_elementtree.c.h84 if (!PyDict_Check(arg)) { in _elementtree_Element___deepcopy__()
518 if (!PyDict_Check(args[1])) { in _elementtree_Element_makeelement()
790 if (!PyDict_Check(args[1])) { in _elementtree_TreeBuilder_start()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc31 CHECK(PyDict_Check(code_to_exc_type_map)); in Init()
/external/python/cpython3/Objects/clinic/
Dfuncobject.c.h51 if (!PyDict_Check(fastargs[1])) { in func_new()
/external/python/cpython3/Modules/_sqlite/
Dstatement.c222 …if (PyTuple_CheckExact(parameters) || PyList_CheckExact(parameters) || (!PyDict_Check(parameters) … in pysqlite_statement_bind_parameters()
275 } else if (PyDict_Check(parameters)) { in pysqlite_statement_bind_parameters()
/external/python/cpython3/Include/
Ddictobject.h17 #define PyDict_Check(op) \ macro
/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/Include/cpython/
Ddictobject.h53 #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
/external/python/cpython3/Python/
Dgetargs.c1459 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_ParseTupleAndKeywords()
1483 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1509 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_VaParseTupleAndKeywords()
1534 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1634 if (!PyDict_Check(kwargs)) { in PyArg_ValidateKeywordArguments()
1669 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywords()
2103 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywordsfast_impl()
2327 || (keywords != NULL && !PyDict_Check(keywords))) in vgetargskeywordsfast()
2357 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyArg_UnpackKeywords()
D_warnings.c245 if (!PyDict_Check(registry)) { in get_once_registry()
635 if (registry && !PyDict_Check(registry) && (registry != Py_None)) { in warn_explicit()
875 assert(PyDict_Check(globals)); in setup_context()
1067 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit()
/external/python/cpython2/Include/
Ddictobject.h99 #define PyDict_Check(op) \ macro
/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/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/cpython3/Modules/
D_functoolsmodule.c50 assert(PyDict_Check(pkw)); in partial_new()
233 assert(PyDict_Check(pto->kw)); in partial_call()
332 assert (PyDict_Check(pto->kw)); in partial_repr()
375 (kw != Py_None && !PyDict_Check(kw))) in partial_setstate()

1234