Home
last modified time | relevance | path

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

12

/third_party/python/Objects/
Ddictobject.c501 CHECK(PyDict_Check(op)); in _PyDict_CheckConsistency()
703 assert(PyDict_Check(orig)); in clone_combined_dict_keys()
981 assert(PyDict_Check(dict)); in _PyDict_HasOnlyStringKeys()
1400 if (!PyDict_Check(op)) { in PyDict_GetItem()
1489 if (!PyDict_Check(op)) { in _PyDict_GetItem_KnownHash()
1513 if (!PyDict_Check(op)) { in PyDict_GetItemWithError()
1604 if (!PyDict_Check(op)) { in PyDict_SetItem()
1632 if (!PyDict_Check(op)) { in _PyDict_SetItem_KnownHash()
1695 if (!PyDict_Check(op)) { in _PyDict_DelItem_KnownHash()
1736 if (!PyDict_Check(op)) { in _PyDict_DelItemIf()
[all …]
Dfuncobject.c14 assert(PyDict_Check(globals)); in PyFunction_NewWithQualName()
180 else if (defaults && PyDict_Check(defaults)) { in PyFunction_SetKwDefaults()
251 assert(PyDict_Check(op->func_annotations)); in func_get_annotation_dict()
274 else if (annotations && PyDict_Check(annotations)) { in PyFunction_SetAnnotations()
449 if (value != NULL && !PyDict_Check(value)) { in func_set_kwdefaults()
488 if (value != NULL && !PyDict_Check(value)) { in func_set_annotations()
Dcall.c132 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_FastCallDictTstate()
177 assert(keywords == NULL || PyTuple_Check(keywords) || PyDict_Check(keywords)); in _PyObject_MakeTpCall()
195 if (keywords == NULL || PyDict_Check(keywords)) { in _PyObject_MakeTpCall()
287 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyObject_Call()
371 if (kwargs != NULL && !PyDict_Check(kwargs)) { in PyEval_CallObjectWithKeywords()
896 assert(PyDict_Check(kwargs)); in _PyStack_UnpackDict()
Dmoduleobject.c484 if (d == NULL || !PyDict_Check(d) || in PyModule_GetNameObject()
817 if (PyDict_Check(dict)) { in module_dir()
846 if ((dict == NULL) || !PyDict_Check(dict)) { in module_get_annotations()
883 if ((dict == NULL) || !PyDict_Check(dict)) { in module_set_annotations()
Dodictobject.c872 if (!PyDict_Check(other)) { in odict_or()
1527 if (!PyODict_Check(v) || !PyDict_Check(w)) { in odict_richcompare()
2335 assert(kwargs == NULL || PyDict_Check(kwargs)); in mutablemapping_update()
Dtypeobject.c1096 assert(kwds == NULL || PyDict_Check(kwds)); in type_call()
2349 if (value != NULL && !PyDict_Check(value)) { in subtype_setdict()
2435 assert(kwds == NULL || PyDict_Check(kwds)); in type_init()
2438 PyDict_Check(kwds) && PyDict_GET_SIZE(kwds) != 0) { in type_init()
3286 assert(kwds == NULL || PyDict_Check(kwds)); in type_new()
3782 assert(dict && PyDict_Check(dict)); in find_name_in_mro()
4123 assert(PyDict_Check(dict)); in merge_class_dict()
4422 (kwds && PyDict_Check(kwds) && PyDict_GET_SIZE(kwds)); in excess_args()
5078 if (!PyDict_Check(*kwargs)) { in _PyObject_GetNewArguments()
5142 if (!PyDict_Check(obj)) { in _PyObject_GetItemsIter()
[all …]
Dframeobject.c933 assert(PyDict_Check(dict)); in map_to_dict()
986 assert(PyDict_Check(dict)); in dict_to_map()
Dmethodobject.c525 assert(kwargs == NULL || PyDict_Check(kwargs)); in cfunction_call()
Dstructseq.c165 if (dict && !PyDict_Check(dict)) { in structseq_new_impl()
/third_party/python/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__()
513 if (!PyDict_Check(args[1])) { in _elementtree_Element_makeelement()
785 if (!PyDict_Check(args[1])) { in _elementtree_TreeBuilder_start()
/third_party/python/Objects/clinic/
Dfuncobject.c.h51 if (!PyDict_Check(fastargs[1])) { in func_new()
/third_party/python/Python/
Dgetargs.c1384 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_ParseTupleAndKeywords()
1408 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_ParseTupleAndKeywords_SizeT()
1434 (keywords != NULL && !PyDict_Check(keywords)) || in PyArg_VaParseTupleAndKeywords()
1459 (keywords != NULL && !PyDict_Check(keywords)) || in _PyArg_VaParseTupleAndKeywords_SizeT()
1559 if (!PyDict_Check(kwargs)) { in PyArg_ValidateKeywordArguments()
1594 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywords()
2028 assert(kwargs == NULL || PyDict_Check(kwargs)); in vgetargskeywordsfast_impl()
2252 || (keywords != NULL && !PyDict_Check(keywords))) in vgetargskeywordsfast()
2282 assert(kwargs == NULL || PyDict_Check(kwargs)); in _PyArg_UnpackKeywords()
D_warnings.c239 if (!PyDict_Check(registry)) { in get_once_registry()
629 if (registry && !PyDict_Check(registry) && (registry != Py_None)) { in warn_explicit()
869 assert(PyDict_Check(globals)); in setup_context()
1061 if (!PyDict_Check(module_globals)) { in warnings_warn_explicit()
Dimport.c945 assert(PyDict_Check(path_importer_cache)); in get_path_importer()
1335 if (!PyDict_Check(globals)) { in resolve_name()
1813 if (PyDict_Check(builtins)) { in PyImport_Import()
/third_party/python/Modules/_sqlite/
Dstatement.c242 …if (PyTuple_CheckExact(parameters) || PyList_CheckExact(parameters) || (!PyDict_Check(parameters) … in pysqlite_statement_bind_parameters()
295 } else if (PyDict_Check(parameters)) { in pysqlite_statement_bind_parameters()
/third_party/python/Include/
Ddictobject.h17 #define PyDict_Check(op) \ macro
/third_party/python/Include/cpython/
Ddictobject.h48 #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
/third_party/python/Doc/c-api/
Dconcrete.rst14 dictionary, use :c:func:`PyDict_Check`. The chapter is structured like the
Ddict.rst22 .. c:function:: int PyDict_Check(PyObject *p)
/third_party/python/Modules/
D_functoolsmodule.c85 assert(PyDict_Check(pkw)); in partial_new()
289 assert(PyDict_Check(pto->kw)); in partial_call()
384 assert (PyDict_Check(pto->kw)); in partial_repr()
427 (kw != Py_None && !PyDict_Check(kw))) in partial_setstate()
D_pickle.c3303 assert(PyDict_Check(obj)); in save_dict()
4052 if (!PyDict_Check(kwargs)) { in save_reduce()
4981 else if (PyDict_Check(obj)) { in Pickler_set_memo()
5962 if (use_kwargs && !PyDict_Check(kwargs)) { in load_newobj()
6694 if (!PyDict_Check(state)) { in load_build()
6724 if (!PyDict_Check(slotstate)) { in load_build()
7502 else if (PyDict_Check(obj)) { in Unpickler_set_memo()
D_json.c1251 if (markers != Py_None && !PyDict_Check(markers)) { in encoder_new()
1438 else if (PyDict_Check(obj)) { in encoder_listencode_obj()
/third_party/python/Modules/_io/
Dstringio.c923 if (!PyDict_Check(dict)) { in stringio_setstate()
Dbytesio.c865 if (!PyDict_Check(dict)) { in bytesio_setstate()

12