Home
last modified time | relevance | path

Searched refs:PyDict_SetItemString (Results 1 – 25 of 54) sorted by relevance

123

/third_party/python/Modules/
D_scproxy.c86 r = PyDict_SetItemString(result, "exclude_simple", v); in get_proxy_settings()
98 r = PyDict_SetItemString(result, "exceptions", v); in get_proxy_settings()
158 r = PyDict_SetItemString(proxies, proto, in set_proxy()
D_localemodule.c209 if (PyDict_SetItemString(dict, Py_STRINGIFY(ATTR), obj) < 0) { \ in locale_decode_monetary()
264 if (PyDict_SetItemString(result, key, obj) < 0) { \ in _locale_localeconv_impl()
315 if (PyDict_SetItemString(result, "decimal_point", decimal_point) < 0) { in _locale_localeconv_impl()
322 if (PyDict_SetItemString(result, "thousands_sep", thousands_sep) < 0) { in _locale_localeconv_impl()
D_xxsubinterpretersmodule.c303 if (PyDict_SetItemString(ns, "ChannelError", ChannelError) != 0) { in channel_exceptions_init()
313 if (PyDict_SetItemString(ns, "ChannelNotFoundError", ChannelNotFoundError) != 0) { in channel_exceptions_init()
323 if (PyDict_SetItemString(ns, "ChannelClosedError", ChannelClosedError) != 0) { in channel_exceptions_init()
333 if (PyDict_SetItemString(ns, "ChannelEmptyError", ChannelEmptyError) != 0) { in channel_exceptions_init()
343 if (PyDict_SetItemString(ns, "ChannelNotEmptyError", ChannelNotEmptyError) != 0) { in channel_exceptions_init()
1818 if (PyDict_SetItemString(ns, "RunFailedError", RunFailedError) != 0) { in interp_exceptions_init()
2650 if (PyDict_SetItemString(ns, "ChannelID", (PyObject *)&ChannelIDtype) != 0) { in PyInit__xxsubinterpreters()
2654 if (PyDict_SetItemString(ns, "InterpreterID", (PyObject *)&_PyInterpreterID_Type) != 0) { in PyInit__xxsubinterpreters()
D_curses_panel.c686 if (PyDict_SetItemString(d, "version", v) < 0) { in _curses_panel_exec()
690 if (PyDict_SetItemString(d, "__version__", v) < 0) { in _curses_panel_exec()
D_cursesmodule.c3274 if (o && PyDict_SetItemString(ModDict, string, o) == 0) { \ in _curses_initscr_impl()
4211 if (PyDict_SetItemString(ModDict, "COLORS", c) < 0) { in _curses_start_color_impl()
4219 if (PyDict_SetItemString(ModDict, "COLOR_PAIRS", cp) < 0) { in _curses_start_color_impl()
4777 if (PyDict_SetItemString(d, "_C_API", c_api_object) < 0) { in PyInit__curses()
4785 PyDict_SetItemString(d, "error", PyCursesError); in PyInit__curses()
4789 PyDict_SetItemString(d, "version", v); in PyInit__curses()
4790 PyDict_SetItemString(d, "__version__", v); in PyInit__curses()
4806 PyDict_SetItemString(d, "ncurses_version", v); in PyInit__curses()
D_testmultiphase.c102 return PyDict_SetItemString(self->x_attr, name, v); in Example_setattr()
459 PyDict_SetItemString(dct, "three", three); in createfunc_nonmodule()
Dxxmodule.c97 return PyDict_SetItemString(self->x_attr, name, v); in Xxo_setattr()
Dxxlimited_35.c112 return PyDict_SetItemString(self->x_attr, name, v); in Xxo_setattr()
Dtimemodule.c1622 if (PyDict_SetItemString(dict, "implementation", obj) == -1) {
1632 if (PyDict_SetItemString(dict, "monotonic", obj) == -1) {
1642 if (PyDict_SetItemString(dict, "adjustable", obj) == -1) {
1653 if (PyDict_SetItemString(dict, "resolution", obj) == -1) {
Dsignalmodule.c1646 if (PyDict_SetItemString(d, "SIG_DFL", state->default_handler) < 0) {
1649 if (PyDict_SetItemString(d, "SIG_IGN", state->ignore_handler) < 0) {
1653 if (PyDict_SetItemString(d, "ItimerError", modstate->itimer_error) < 0) {
D_ssl.c1573 if (PyDict_SetItemString(retval, (const char *) "subject", peer) < 0) { in _decode_certificate()
1584 if (PyDict_SetItemString(retval, (const char *)"issuer", issuer) < 0) { in _decode_certificate()
1593 if (PyDict_SetItemString(retval, "version", version) < 0) { in _decode_certificate()
1618 if (PyDict_SetItemString(retval, "serialNumber", sn_obj) < 0) { in _decode_certificate()
1635 if (PyDict_SetItemString(retval, "notBefore", pnotBefore) < 0) { in _decode_certificate()
1652 if (PyDict_SetItemString(retval, "notAfter", pnotAfter) < 0) { in _decode_certificate()
1664 if (PyDict_SetItemString(retval, "subjectAltName", in _decode_certificate()
1677 result = PyDict_SetItemString(retval, "OCSP", obj); in _decode_certificate()
1688 result = PyDict_SetItemString(retval, "caIssuers", obj); in _decode_certificate()
1700 result = PyDict_SetItemString(retval, "crlDistributionPoints", obj); in _decode_certificate()
[all …]
Derrnomodule.c87 if (PyDict_SetItemString(module_dict, "errorcode", error_dict) < 0) { in errno_exec()
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c212 if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in multiprocessing_exec()
235 if (PyDict_SetItemString(flags, #name, value) < 0) { \ in multiprocessing_exec()
/third_party/python/PC/
Dmsvcrtmodule.c560 PyDict_SetItemString(d, name, v); in insertint()
574 PyDict_SetItemString(d, name, v); in insertptr()
Dwinreg.c2008 if (!v || PyDict_SetItemString(d, name, v)) in insint()
2019 if (!v || PyDict_SetItemString(d, name, v)) in inskey()
2050 if (PyDict_SetItemString(d, "HKEYType", in PyInit_winreg()
2054 if (PyDict_SetItemString(d, "error", in PyInit_winreg()
/third_party/python/Objects/
Dstructseq.c348 if (PyDict_SetItemString(dict, n, self->ob_item[i]) < 0) in structseq_reduce()
394 if (PyDict_SetItemString(dict, key, v) < 0) { \ in initialize_structseq_dict()
428 if (PyDict_SetItemString(dict, match_args_key, keys) < 0) { in initialize_structseq_dict()
/third_party/python/Python/
Dsysmodule.c2728 res = PyDict_SetItemString(impl_info, "name", value); in make_impl_info()
2736 res = PyDict_SetItemString(impl_info, "cache_tag", value); in make_impl_info()
2741 res = PyDict_SetItemString(impl_info, "version", version_info); in make_impl_info()
2748 res = PyDict_SetItemString(impl_info, "hexversion", value); in make_impl_info()
2757 res = PyDict_SetItemString(impl_info, "_multiarch", value); in make_impl_info()
2793 res = PyDict_SetItemString(sysdict, key, v); \
3014 PyDict_SetItemString(sysdict, "pycache_prefix", Py_None); in _PySys_UpdateConfig()
3066 if (PyDict_SetItemString(sysdict, "__stderr__", pstderr) < 0) { in _PySys_SetPreliminaryStderr()
3105 if (PyDict_SetItemString(sysdict, "modules", interp->modules) < 0) { in _PySys_Create()
Dpylifecycle.c1306 if (PyDict_SetItemString(interp->builtins, "_", Py_None) < 0) { in finalize_modules_delete_special()
1315 if (PyDict_SetItemString(interp->sysdict, *p, Py_None) < 0) { in finalize_modules_delete_special()
1333 if (PyDict_SetItemString(interp->sysdict, name, value) < 0) { in finalize_modules_delete_special()
2044 (PyDict_SetItemString(d, "__annotations__", ann_dict) < 0)) { in add_main_module()
2057 if (PyDict_SetItemString(d, "__builtins__", bimod) < 0) { in add_main_module()
2079 if (PyDict_SetItemString(d, "__loader__", loader) < 0) { in add_main_module()
Dpythonrun.c389 if (PyDict_SetItemString(d, "__loader__", loader) < 0) { in set_main_loader()
414 if (PyDict_SetItemString(d, "__file__", filename) < 0) { in _PyRun_SimpleFileObject()
417 if (PyDict_SetItemString(d, "__cached__", Py_None) < 0) { in _PyRun_SimpleFileObject()
1284 PyDict_SetItemString(globals, "__builtins__", in run_eval_code_obj()
Dpathconfig.c203 int res = PyDict_SetItemString(dict, KEY, obj); \ in _PyPathConfig_AsDict()
244 if (PyDict_SetItemString(dict, "python3_dll", obj) < 0) { in _PyPathConfig_AsDict()
Dinitconfig.c193 int res = PyDict_SetItemString(dict, (KEY), obj); \ in _Py_GetGlobalVariablesAsDict()
974 int res = PyDict_SetItemString(dict, (KEY), obj); \ in _PyConfig_AsDict()
2973 if (PyDict_SetItemString(result, "global_config", dict) < 0) { in _Py_GetConfigsAsDict()
2985 if (PyDict_SetItemString(result, "pre_config", dict) < 0) { in _Py_GetConfigsAsDict()
2996 if (PyDict_SetItemString(result, "config", dict) < 0) { in _Py_GetConfigsAsDict()
3006 if (PyDict_SetItemString(result, "path_config", dict) < 0) { in _Py_GetConfigsAsDict()
Derrors.c1002 if (PyDict_SetItemString(kwargs, "name", name) < 0) { in PyErr_SetImportErrorSubclass()
1005 if (PyDict_SetItemString(kwargs, "path", path) < 0) { in PyErr_SetImportErrorSubclass()
1184 result = PyDict_SetItemString(dict, "__doc__", docobj); in PyErr_NewExceptionWithDoc()
/third_party/python/Include/
Ddictobject.h58 PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
/third_party/python/Modules/_blake2/
Dblake2module.c67 if (PyDict_SetItemString(d, name, x) < 0) { \
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c1054 PyDict_SetItemString(mdict, "__file__", obj); in alsa_mixer_simple_pyinit()
1058 PyDict_SetItemString(mdict, "device", obj); in alsa_mixer_simple_pyinit()
1073 PyDict_SetItemString(mdict, "mixer", obj2); in alsa_mixer_simple_pyinit()

123