Home
last modified time | relevance | path

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

123

/external/liblc3/test/
Dctypes.h201 CTYPES_CHECK("attdet", obj && PyDict_Check(obj)); in to_attdet_analysis()
241 CTYPES_CHECK("hp50", obj && PyDict_Check(obj)); in to_ltpf_hp50_state()
273 CTYPES_CHECK("ltpf", obj && PyDict_Check(obj)); in to_ltpf_analysis()
341 CTYPES_CHECK("ltpf", obj && PyDict_Check(obj)); in to_ltpf_synthesis()
401 CTYPES_CHECK("ltpf", obj && PyDict_Check(obj)); in to_ltpf_data()
455 CTYPES_CHECK("sns", obj && PyDict_Check(obj)); in to_sns_data()
513 CTYPES_CHECK("tns", obj && PyDict_Check(obj)); in to_tns_data()
562 CTYPES_CHECK("spec", obj && PyDict_Check(obj)); in to_spec_analysis()
598 CTYPES_CHECK("side", obj && PyDict_Check(obj)); in to_spec_data()
644 CTYPES_CHECK("frame", obj && PyDict_Check(obj)); in to_side_data()
[all …]
/external/tensorflow/tensorflow/python/util/
Dnest.cc59 if (PyDict_Check(o)) { in GetKeysFromDictOrMapping()
78 if (!PyDict_Check(dict) && !swig::IsMapping(dict)) { in FlattenDictItems()
Dutil.cc237 if (PyDict_Check(o)) return true; in IsMappingHelper()
247 if (PyDict_Check(o)) return true; in IsMutableMappingHelper()
613 if (PyDict_Check(nested)) { in GetValueIterator()
626 if (PyDict_Check(nested)) { in GetValueIteratorForData()
824 if (PyDict_Check(o1) && PyDict_Check(o2)) { in AssertSameStructureHelper()
/external/python/cpython3/Objects/
Ddictobject.c689 CHECK(PyDict_Check(op)); in _PyDict_CheckConsistency()
965 assert(PyDict_Check(orig)); in clone_combined_dict_keys()
1575 assert(PyDict_Check(dict)); in _PyDict_HasOnlyStringKeys()
2189 if (!PyDict_Check(op)) { in dict_getitem()
2265 if (!PyDict_Check(op)) { in _PyDict_GetItem_KnownHash()
2336 if (!PyDict_Check(op)) { in PyDict_GetItemRef()
2390 if (!PyDict_Check(op)) { in PyDict_GetItemWithError()
2490 assert(PyDict_Check(mp)); in setitem_take2_lock_held()
2526 if (!PyDict_Check(op)) { in PyDict_SetItem()
2562 if (!PyDict_Check(op)) { in _PyDict_SetItem_KnownHash()
[all …]
Dcall.c125 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_VectorcallDictTstate()
206 assert(keywords == NULL || PyTuple_Check(keywords) || PyDict_Check(keywords)); in _PyObject_MakeTpCall()
222 if (keywords == NULL || PyDict_Check(keywords)) { in _PyObject_MakeTpCall()
344 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_Call()
443 if (kwargs != NULL && !PyDict_Check(kwargs)) { in PyEval_CallObjectWithKeywords()
966 assert(PyDict_Check(kwargs)); in _PyStack_UnpackDict()
Dfuncobject.c142 assert(PyDict_Check(globals)); in PyFunction_NewWithQualName()
463 else if (defaults && PyDict_Check(defaults)) { in PyFunction_SetKwDefaults()
537 assert(PyDict_Check(op->func_annotations)); in func_get_annotation_dict()
560 else if (annotations && PyDict_Check(annotations)) { in PyFunction_SetAnnotations()
745 if (value != NULL && !PyDict_Check(value)) { in func_set_kwdefaults()
786 if (value != NULL && !PyDict_Check(value)) { in func_set_annotations()
914 if (kwdefaults != Py_None && !PyDict_Check(kwdefaults)) { in func_new_impl()
Dmoduleobject.c568 if (dict == NULL || !PyDict_Check(dict)) { in PyModule_GetNameObject()
1115 if (PyDict_Check(dict)) { in module_dir()
1146 if (!PyDict_Check(dict)) { in module_get_annotations()
1175 if (!PyDict_Check(dict)) { in module_set_annotations()
Dframeobject.c215 assert(PyDict_Check(extra)); in framelocalsproxy_setitem()
227 if (!PyDict_Check(other) && !PyFrameLocalsProxy_Check(other)) { in framelocalsproxy_merge()
292 assert(PyDict_Check(frame->f_extra_locals)); in framelocalsproxy_keys()
388 } else if (PyDict_Check(other)) { in framelocalsproxy_richcompare()
438 if (!PyDict_Check(other) && !PyFrameLocalsProxy_Check(other)) { in framelocalsproxy_or()
463 if (!PyDict_Check(other) && !PyFrameLocalsProxy_Check(other)) { in framelocalsproxy_inplace_or()
574 assert(PyDict_Check(frame->f_extra_locals)); in framelocalsproxy_length()
/external/python/cpython3/Python/
Dinterpconfig.c225 if (!PyDict_Check(dict)) { in _PyInterpreterConfig_InitFromDict()
238 if (!PyDict_Check(dict)) { in _PyInterpreterConfig_UpdateFromDict()
Dgetargs.c1259 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_ParseTupleAndKeywords()
1283 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1309 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_VaParseTupleAndKeywords()
1334 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1469 if (!PyDict_Check(kwargs)) { in PyArg_ValidateKeywordArguments()
1506 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywords()
2070 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywordsfast_impl()
2271 || (keywords != NULL && !PyDict_Check(keywords))) in vgetargskeywordsfast()
2300 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyArg_UnpackKeywords()
2477 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyArg_UnpackKeywordsWithVararg()
D_warnings.c251 if (!PyDict_Check(registry)) { in get_once_registry()
638 if (registry && !PyDict_Check(registry) && (registry != Py_None)) { in warn_explicit()
910 assert(PyDict_Check(globals)); in setup_context()
1140 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit_impl()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc31 CHECK(PyDict_Check(code_to_exc_type_map)); in Init()
/external/python/cpython3/Modules/_testcapi/
Dvectorcall.c58 else if (!PyDict_Check(kwargs)) { in _testcapi_pyobject_fastcalldict_impl()
139 if (kwargs != NULL && !PyDict_Check(kwargs)) { in _testcapi_pyvectorcall_call_impl()
Ddict.c187 if (!PyDict_Check(dict)) { in dict_version()
/external/pytorch/torch/csrc/autograd/
Dpython_anomaly_mode.cpp32 if (!PyDict_Check(dict())) { in print_stack()
/external/python/cpython3/Modules/clinic/
D_weakref.c.h58 if (!PyDict_Check(args[0])) { in _weakref__remove_dead_weakref()
D_elementtree.c.h114 if (!PyDict_Check(arg)) { in _elementtree_Element___deepcopy__()
771 if (!PyDict_Check(args[1])) { in _elementtree_Element_makeelement()
1066 if (!PyDict_Check(args[1])) { in _elementtree_TreeBuilder_start()
/external/python/cpython3/Include/cpython/
Ddictobject.h57 assert(PyDict_Check(op)); in PyDict_GET_SIZE()
/external/python/cpython3/Objects/clinic/
Dfuncobject.c.h85 if (!PyDict_Check(fastargs[1])) { in func_new()
/external/python/cpython3/Include/
Ddictobject.h17 #define PyDict_Check(op) \ macro
/external/python/cpython3/Modules/
D_testinternalcapi.c811 assert(PyDict_Check(metadata)); in _testinternalcapi_assemble_code_object_impl()
827 assert(PyDict_Check(umd.u_consts)); in _testinternalcapi_assemble_code_object_impl()
828 assert(PyDict_Check(umd.u_names)); in _testinternalcapi_assemble_code_object_impl()
829 assert(PyDict_Check(umd.u_varnames)); in _testinternalcapi_assemble_code_object_impl()
830 assert(PyDict_Check(umd.u_cellvars)); in _testinternalcapi_assemble_code_object_impl()
831 assert(PyDict_Check(umd.u_freevars)); in _testinternalcapi_assemble_code_object_impl()
832 assert(PyDict_Check(umd.u_fasthidden)); in _testinternalcapi_assemble_code_object_impl()
D_functoolsmodule.c102 assert(PyDict_Check(pkw)); in partial_new()
320 assert(PyDict_Check(pto->kw)); in partial_call()
417 assert (PyDict_Check(pto->kw)); in partial_repr()
475 (kw != Py_None && !PyDict_Check(kw))) in partial_setstate()
/external/python/cpython3/Doc/c-api/
Dconcrete.rst14 dictionary, use :c:func:`PyDict_Check`. The chapter is structured like the
/external/python/cpython3/Modules/_testlimitedcapi/
Ddict.c9 return PyLong_FromLong(PyDict_Check(obj)); in dict_check()
/external/pytorch/torch/csrc/jit/python/
Dpython_arg_flatten.cpp57 } else if (PyDict_Check(obj)) { in flatten_rec()

123