Home
last modified time | relevance | path

Searched refs:_PyDict_SetItemId (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Objects/
Dmoduleobject.c64 if (_PyDict_SetItemId(md_dict, &PyId___name__, name) != 0) in module_init_dict()
66 if (_PyDict_SetItemId(md_dict, &PyId___doc__, doc) != 0) in module_init_dict()
68 if (_PyDict_SetItemId(md_dict, &PyId___package__, Py_None) != 0) in module_init_dict()
70 if (_PyDict_SetItemId(md_dict, &PyId___loader__, Py_None) != 0) in module_init_dict()
72 if (_PyDict_SetItemId(md_dict, &PyId___spec__, Py_None) != 0) in module_init_dict()
Dtypeobject.c577 return _PyDict_SetItemId(type->tp_dict, &PyId___module__, value); in type_set_module()
612 res = _PyDict_SetItemId(type->tp_dict, &PyId___abstractmethods__, value); in type_set_abstractmethods()
894 return _PyDict_SetItemId(type->tp_dict, &PyId___doc__, value); in type_set_doc()
2647 if (_PyDict_SetItemId(dict, &PyId___module__, in type_new()
2716 if (_PyDict_SetItemId(dict, &PyId___new__, tmp) < 0) { in type_new()
2733 if (_PyDict_SetItemId(dict, &PyId___init_subclass__, tmp) < 0) { in type_new()
2748 if (_PyDict_SetItemId(dict, &PyId___class_getitem__, tmp) < 0) { in type_new()
3082 err = _PyDict_SetItemId(type->tp_dict, &PyId___module__, modname); in PyType_FromModuleAndSpec()
5536 if (_PyDict_SetItemId(type->tp_dict, &PyId___doc__, doc) < 0) { in PyType_Ready()
5542 if (_PyDict_SetItemId(type->tp_dict, in PyType_Ready()
[all …]
Dexceptions.c720 if (self->name && _PyDict_SetItemId(dict, &PyId_name, self->name) < 0) { in ImportError_getstate()
724 if (self->path && _PyDict_SetItemId(dict, &PyId_path, self->path) < 0) { in ImportError_getstate()
Dobject.c1977 if (_PyDict_SetItemId(dict, &PyId_Py_Repr, list) < 0) in Py_ReprEnter()
Ddictobject.c3491 _PyDict_SetItemId(PyObject *v, struct _Py_Identifier *key, PyObject *item) in _PyDict_SetItemId() function
/external/python/cpython3/Include/cpython/
Ddictobject.h72 PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, struct _Py_Identifier *key, PyObject *item);
/external/python/cpython3/Modules/
D_asynciomodule.c312 if (_PyDict_SetItemId( in set_running_loop()
1445 if (_PyDict_SetItemId(context, &PyId_message, message) < 0 || in FutureObj_finalize()
1446 _PyDict_SetItemId(context, &PyId_exception, fut->fut_exception) < 0 || in FutureObj_finalize()
1447 _PyDict_SetItemId(context, &PyId_future, (PyObject*)fut) < 0) { in FutureObj_finalize()
1451 if (_PyDict_SetItemId(context, &PyId_source_traceback, in FutureObj_finalize()
2453 if (_PyDict_SetItemId(context, &PyId_message, message) < 0 || in TaskObj_finalize()
2454 _PyDict_SetItemId(context, &PyId_task, (PyObject*)task) < 0) in TaskObj_finalize()
2460 if (_PyDict_SetItemId(context, &PyId_source_traceback, in TaskObj_finalize()
D_lzmamodule.c389 status = _PyDict_SetItemId(spec, key, value_object); in spec_add_field()
/external/python/cpython3/Python/
D_warnings.c412 if (_PyDict_SetItemId(registry, &PyId_version, version_obj) < 0) { in already_warned()
887 rc = _PyDict_SetItemId(globals, &PyId___warningregistry__, *registry); in setup_context()
Dbltinmodule.c928 if (_PyDict_SetItemId(globals, &PyId___builtins__, in builtin_eval_impl()
1016 if (_PyDict_SetItemId(globals, &PyId___builtins__, in builtin_exec_impl()
Dsysmodule.c105 return _PyDict_SetItemId(sd, key, v); in sys_set_object_id()
2996 if (_PyDict_SetItemId(sysdict, &PyId_stderr, pstderr) < 0) { in _PySys_SetPreliminaryStderr()
Derrors.c1110 if (_PyDict_SetItemId(dict, &PyId___module__, modulename) != 0) in PyErr_NewException()
Dimport.c1026 _PyDict_SetItemId(d, &PyId___builtins__, in module_dict_for_exec()
Dceval.c2874 err = _PyDict_SetItemId(f->f_locals, in _PyEval_EvalFrameDefault()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c1144 if (-1 == _PyDict_SetItemId((PyObject *)dict, &PyId__type_, type)) in PyCPointerType_set_type()