/external/python/cpython2/Modules/ |
D | clmodule.c | 975 (void) PyDict_SetItemString(d, "error", ClError); in initcl() 979 if (x == NULL || PyDict_SetItemString(d, "ADDED_ALGORITHM_ERROR", x) < 0) in initcl() 985 if (x == NULL || PyDict_SetItemString(d, "ALAW", x) < 0) in initcl() 991 if (x == NULL || PyDict_SetItemString(d, "ALGORITHM_ID", x) < 0) in initcl() 997 if (x == NULL || PyDict_SetItemString(d, "ALGORITHM_TABLE_FULL", x) < 0) in initcl() 1003 if (x == NULL || PyDict_SetItemString(d, "ALGORITHM_VERSION", x) < 0) in initcl() 1009 if (x == NULL || PyDict_SetItemString(d, "ALG_AUDIO", x) < 0) in initcl() 1015 if (x == NULL || PyDict_SetItemString(d, "ALG_VIDEO", x) < 0) in initcl() 1021 if (x == NULL || PyDict_SetItemString(d, "AUDIO", x) < 0) in initcl() 1027 if (x == NULL || PyDict_SetItemString(d, "AWARE_BITRATE_POLICY", x) < 0) in initcl() [all …]
|
D | almodule.c | 1701 PyDict_SetItemString(v, "resource", item); in al_GetParamInfo() 1705 PyDict_SetItemString(v, "param", item); in al_GetParamInfo() 1709 PyDict_SetItemString(v, "valueType", item); in al_GetParamInfo() 1715 PyDict_SetItemString(v, "maxElems", item); in al_GetParamInfo() 1721 PyDict_SetItemString(v, "maxElems2", item); in al_GetParamInfo() 1727 PyDict_SetItemString(v, "elementType", item); in al_GetParamInfo() 1731 PyDict_SetItemString(v, "name", item); in al_GetParamInfo() 1735 PyDict_SetItemString(v, "initial", item); in al_GetParamInfo() 1743 PyDict_SetItemString(v, "min", item); in al_GetParamInfo() 1747 PyDict_SetItemString(v, "max", item); in al_GetParamInfo() [all …]
|
D | signalmodule.c | 591 if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0) in initsignal() 595 if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0) in initsignal() 599 if (!x || PyDict_SetItemString(d, "NSIG", x) < 0) in initsignal() 630 PyDict_SetItemString(d, "SIGHUP", x); in initsignal() 635 PyDict_SetItemString(d, "SIGINT", x); in initsignal() 640 PyDict_SetItemString(d, "SIGBREAK", x); in initsignal() 645 PyDict_SetItemString(d, "SIGQUIT", x); in initsignal() 650 PyDict_SetItemString(d, "SIGILL", x); in initsignal() 655 PyDict_SetItemString(d, "SIGTRAP", x); in initsignal() 660 PyDict_SetItemString(d, "SIGIOT", x); in initsignal() [all …]
|
D | _localemodule.c | 123 PyDict_SetItemString(string, "uppercase", ulo); in fixup_ulcase() 125 PyDict_SetItemString(strop, "uppercase", ulo); in fixup_ulcase() 138 PyDict_SetItemString(string, "lowercase", ulo); in fixup_ulcase() 140 PyDict_SetItemString(strop, "lowercase", ulo); in fixup_ulcase() 153 PyDict_SetItemString(string, "letters", ulo); in fixup_ulcase() 226 PyDict_SetItemString(result, #s, x);\ in PyLocale_localeconv() 232 PyDict_SetItemString(result, #i, x);\ in PyLocale_localeconv() 241 PyDict_SetItemString(result, "grouping", x); in PyLocale_localeconv() 252 PyDict_SetItemString(result, "mon_grouping", x); in PyLocale_localeconv() 706 PyDict_SetItemString(d, "LC_CTYPE", x); in init_locale() [all …]
|
D | cdmodule.c | 764 PyDict_SetItemString(d, "error", CdError); in initcd() 767 PyDict_SetItemString(d, "audio", PyInt_FromLong((long) cd_audio)); in initcd() 768 PyDict_SetItemString(d, "pnum", PyInt_FromLong((long) cd_pnum)); in initcd() 769 PyDict_SetItemString(d, "index", PyInt_FromLong((long) cd_index)); in initcd() 770 PyDict_SetItemString(d, "ptime", PyInt_FromLong((long) cd_ptime)); in initcd() 771 PyDict_SetItemString(d, "atime", PyInt_FromLong((long) cd_atime)); in initcd() 772 PyDict_SetItemString(d, "catalog", PyInt_FromLong((long) cd_catalog)); in initcd() 773 PyDict_SetItemString(d, "ident", PyInt_FromLong((long) cd_ident)); in initcd() 774 PyDict_SetItemString(d, "control", PyInt_FromLong((long) cd_control)); in initcd() 777 PyDict_SetItemString(d, "DATASIZE", in initcd() [all …]
|
D | dlmodule.c | 233 if (!v || PyDict_SetItemString(d, name, v)) in insint() 259 PyDict_SetItemString(d, "error", x); in initdl() 261 PyDict_SetItemString(d, "RTLD_LAZY", x); in initdl()
|
D | _curses_panel.c | 488 PyDict_SetItemString(d, "error", PyCursesError); in init_curses_panel() 492 PyDict_SetItemString(d, "version", v); in init_curses_panel() 493 PyDict_SetItemString(d, "__version__", v); in init_curses_panel()
|
D | _ssl.c | 1286 if (PyDict_SetItemString(retval, (const char *) "subject", peer) < 0) { in _decode_certificate() 1296 if (PyDict_SetItemString(retval, (const char *)"issuer", issuer) < 0) { in _decode_certificate() 1305 if (PyDict_SetItemString(retval, "version", version) < 0) { in _decode_certificate() 1326 if (PyDict_SetItemString(retval, "serialNumber", sn_obj) < 0) { in _decode_certificate() 1343 if (PyDict_SetItemString(retval, "notBefore", pnotBefore) < 0) { in _decode_certificate() 1360 if (PyDict_SetItemString(retval, "notAfter", pnotAfter) < 0) { in _decode_certificate() 1372 if (PyDict_SetItemString(retval, "subjectAltName", in _decode_certificate() 1385 result = PyDict_SetItemString(retval, "OCSP", obj); in _decode_certificate() 1396 result = PyDict_SetItemString(retval, "caIssuers", obj); in _decode_certificate() 1408 result = PyDict_SetItemString(retval, "crlDistributionPoints", obj); in _decode_certificate() [all …]
|
/external/python/cpython2/Modules/_sqlite/ |
D | module.c | 231 PyDict_SetItemString(dict, "converters", _pysqlite_converters); in converters_init() 344 PyDict_SetItemString(dict, "Error", pysqlite_Error); in init_sqlite3() 349 PyDict_SetItemString(dict, "Warning", pysqlite_Warning); in init_sqlite3() 356 PyDict_SetItemString(dict, "InterfaceError", pysqlite_InterfaceError); in init_sqlite3() 361 PyDict_SetItemString(dict, "DatabaseError", pysqlite_DatabaseError); in init_sqlite3() 368 PyDict_SetItemString(dict, "InternalError", pysqlite_InternalError); in init_sqlite3() 373 PyDict_SetItemString(dict, "OperationalError", pysqlite_OperationalError); in init_sqlite3() 378 PyDict_SetItemString(dict, "ProgrammingError", pysqlite_ProgrammingError); in init_sqlite3() 383 PyDict_SetItemString(dict, "IntegrityError", pysqlite_IntegrityError); in init_sqlite3() 388 PyDict_SetItemString(dict, "DataError", pysqlite_DataError); in init_sqlite3() [all …]
|
/external/python/cpython3/Modules/_sqlite/ |
D | module.c | 244 PyDict_SetItemString(dict, "converters", _pysqlite_converters); in converters_init() 387 PyDict_SetItemString(dict, "Error", pysqlite_Error); in PyInit__sqlite3() 392 PyDict_SetItemString(dict, "Warning", pysqlite_Warning); in PyInit__sqlite3() 399 PyDict_SetItemString(dict, "InterfaceError", pysqlite_InterfaceError); in PyInit__sqlite3() 404 PyDict_SetItemString(dict, "DatabaseError", pysqlite_DatabaseError); in PyInit__sqlite3() 411 PyDict_SetItemString(dict, "InternalError", pysqlite_InternalError); in PyInit__sqlite3() 416 PyDict_SetItemString(dict, "OperationalError", pysqlite_OperationalError); in PyInit__sqlite3() 421 PyDict_SetItemString(dict, "ProgrammingError", pysqlite_ProgrammingError); in PyInit__sqlite3() 426 PyDict_SetItemString(dict, "IntegrityError", pysqlite_IntegrityError); in PyInit__sqlite3() 431 PyDict_SetItemString(dict, "DataError", pysqlite_DataError); in PyInit__sqlite3() [all …]
|
/external/python/cpython2/Objects/ |
D | moduleobject.c | 29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New() 31 if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0) in PyModule_New() 33 if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0) in PyModule_New() 168 if (PyDict_SetItemString(dict, "__name__", name) < 0) in module_init() 170 if (PyDict_SetItemString(dict, "__doc__", doc) < 0) in module_init()
|
/external/python/cpython2/Python/ |
D | Python-ast.c | 659 PyDict_SetItemString(d, "_fields", empty_tuple) < 0 || in add_ast_fields() 660 PyDict_SetItemString(d, "_attributes", empty_tuple) < 0) { in add_ast_fields() 6767 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; in init_ast() 6772 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; in init_ast() 6773 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) in init_ast() 6775 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) in init_ast() 6777 if (PyDict_SetItemString(d, "Expression", (PyObject*)Expression_type) < in init_ast() 6779 if (PyDict_SetItemString(d, "Suite", (PyObject*)Suite_type) < 0) return; in init_ast() 6780 if (PyDict_SetItemString(d, "stmt", (PyObject*)stmt_type) < 0) return; in init_ast() 6781 if (PyDict_SetItemString(d, "FunctionDef", (PyObject*)FunctionDef_type) in init_ast() [all …]
|
D | sysmodule.c | 83 return PyDict_SetItemString(sd, name, v); in PySys_SetObject() 1370 PyDict_SetItemString(sysdict, key, v); \ in _PySys_Init() 1406 PyDict_SetItemString(sysdict, "stdin", sysin); in _PySys_Init() 1407 PyDict_SetItemString(sysdict, "stdout", sysout); in _PySys_Init() 1408 PyDict_SetItemString(sysdict, "stderr", syserr); in _PySys_Init() 1410 PyDict_SetItemString(sysdict, "__stdin__", sysin); in _PySys_Init() 1411 PyDict_SetItemString(sysdict, "__stdout__", sysout); in _PySys_Init() 1412 PyDict_SetItemString(sysdict, "__stderr__", syserr); in _PySys_Init() 1413 PyDict_SetItemString(sysdict, "__displayhook__", in _PySys_Init() 1415 PyDict_SetItemString(sysdict, "__excepthook__", in _PySys_Init() [all …]
|
D | import.c | 450 if (PyDict_SetItemString(dict, "_", Py_None) < 0) { in PyImport_Cleanup() 462 if (PyDict_SetItemString(dict, *p, Py_None) < 0) { in PyImport_Cleanup() 472 if (PyDict_SetItemString(dict, *p, v) < 0) { in PyImport_Cleanup() 484 if (PyDict_SetItemString(modules, "__main__", Py_None) < 0) { in PyImport_Cleanup() 559 if (PyDict_SetItemString(modules, "sys", Py_None) < 0) { in PyImport_Cleanup() 568 if (PyDict_SetItemString(modules, "__builtin__", Py_None) < 0) { in PyImport_Cleanup() 622 PyDict_SetItemString(extensions, filename, copy); in _PyImport_FixupExtension() 734 if (PyDict_SetItemString(d, "__builtins__", in PyImport_ExecCodeModuleEx() 749 if (PyDict_SetItemString(d, "__file__", v) != 0) in PyImport_ExecCodeModuleEx() 1189 err = PyDict_SetItemString(d, "__file__", file); in load_package() [all …]
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 8160 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return NULL; in PyInit__ast() 8163 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return NULL; in PyInit__ast() 8164 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) return in PyInit__ast() 8166 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) < in PyInit__ast() 8168 if (PyDict_SetItemString(d, "Expression", (PyObject*)Expression_type) < 0) in PyInit__ast() 8170 if (PyDict_SetItemString(d, "Suite", (PyObject*)Suite_type) < 0) return in PyInit__ast() 8172 if (PyDict_SetItemString(d, "stmt", (PyObject*)stmt_type) < 0) return NULL; in PyInit__ast() 8173 if (PyDict_SetItemString(d, "FunctionDef", (PyObject*)FunctionDef_type) < in PyInit__ast() 8175 if (PyDict_SetItemString(d, "AsyncFunctionDef", in PyInit__ast() 8177 if (PyDict_SetItemString(d, "ClassDef", (PyObject*)ClassDef_type) < 0) in PyInit__ast() [all …]
|
/external/python/cpython2/Mac/Modules/ |
D | _scproxy.c | 81 r = PyDict_SetItemString(result, "exclude_simple", v); in get_proxy_settings() 93 r = PyDict_SetItemString(result, "exceptions", v); in get_proxy_settings() 155 r = PyDict_SetItemString(proxies, proto, in set_proxy()
|
D | MacOS.c | 706 if (MacOS_Error == NULL || PyDict_SetItemString(d, "Error", MacOS_Error) != 0) 710 if (PyDict_SetItemString(d, "ResourceForkType", (PyObject *)&Rftype) != 0) 721 if( PyDict_SetItemString(d, "string_id_to_buffer", Py_BuildValue("i", off)) != 0) 725 if (PyDict_SetItemString(d, "runtimemodel", 735 if (PyDict_SetItemString(d, "linkmodel",
|
/external/python/cpython3/Modules/ |
D | _scproxy.c | 86 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 | _curses_panel.c | 519 PyDict_SetItemString(d, "error", _curses_panelstate(m)->PyCursesError); in PyInit__curses_panel() 523 PyDict_SetItemString(d, "version", v); in PyInit__curses_panel() 524 PyDict_SetItemString(d, "__version__", v); in PyInit__curses_panel()
|
D | _localemodule.c | 177 if (PyDict_SetItemString(dict, Py_STRINGIFY(ATTR), obj) < 0) { \ in locale_decode_monetary() 225 if (PyDict_SetItemString(result, key, obj) < 0) { \ in PyLocale_localeconv() 271 if (PyDict_SetItemString(result, "decimal_point", decimal_point) < 0) { in PyLocale_localeconv() 278 if (PyDict_SetItemString(result, "thousands_sep", thousands_sep) < 0) { in PyLocale_localeconv()
|
D | _ssl.c | 1582 if (PyDict_SetItemString(retval, (const char *) "subject", peer) < 0) { in _decode_certificate() 1592 if (PyDict_SetItemString(retval, (const char *)"issuer", issuer) < 0) { in _decode_certificate() 1601 if (PyDict_SetItemString(retval, "version", version) < 0) { in _decode_certificate() 1626 if (PyDict_SetItemString(retval, "serialNumber", sn_obj) < 0) { in _decode_certificate() 1643 if (PyDict_SetItemString(retval, "notBefore", pnotBefore) < 0) { in _decode_certificate() 1660 if (PyDict_SetItemString(retval, "notAfter", pnotAfter) < 0) { in _decode_certificate() 1672 if (PyDict_SetItemString(retval, "subjectAltName", in _decode_certificate() 1685 result = PyDict_SetItemString(retval, "OCSP", obj); in _decode_certificate() 1696 result = PyDict_SetItemString(retval, "caIssuers", obj); in _decode_certificate() 1708 result = PyDict_SetItemString(retval, "crlDistributionPoints", obj); in _decode_certificate() [all …]
|
/external/tensorflow/tensorflow/lite/toco/python/ |
D | toco_python_api.cc | 90 PyDict_SetItemString( in TocoConvert() 94 PyDict_SetItemString(dict, "arithmetic_ops", in TocoConvert()
|
/external/python/cpython3/Modules/_multiprocessing/ |
D | multiprocessing.c | 184 PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in PyInit__multiprocessing() 198 if (PyDict_SetItemString(temp, #name, value) < 0) { \ in PyInit__multiprocessing()
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 312 if (PyDict_SetItemString(config, "global_config", dict) < 0) { in dump_config_impl() 324 if (PyDict_SetItemString(config, "core_config", dict) < 0) { in dump_config_impl() 335 if (PyDict_SetItemString(config, "main_config", dict) < 0) { in dump_config_impl()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 292 PyDict_SetItemString(SemLockType.tp_dict, "SEM_VALUE_MAX", in init_multiprocessing() 331 if (PyDict_SetItemString(temp, #name, value) < 0) { \ in init_multiprocessing()
|