Home
last modified time | relevance | path

Searched refs:PyDict_SetItem (Results 1 – 25 of 109) sorted by relevance

12345

/external/tensorflow/tensorflow/python/util/
Dnest.cc125 PyDict_SetItem(flat_dictionary, flat_key, flat_value); in FlattenDictItems()
138 PyDict_SetItem(flat_dictionary, key, value); in FlattenDictItems()
/external/python/cpython2/Objects/
Dmoduleobject.c125 if (PyDict_SetItem(d, key, Py_None) != 0) in _PyModule_Clear()
139 if (PyDict_SetItem(d, key, Py_None) != 0) in _PyModule_Clear()
/external/python/cffi/c/
Dcall_python.c46 err = PyDict_SetItem(builtins, attr_name, d); in _get_interpstate_dict()
123 err = PyDict_SetItem(interpstate_dict, interpstate_key, infotuple); in _ffi_def_extern_decorator()
Dlib_obj.c432 int err = PyDict_SetItem(lib->l_dict, name, x); in lib_build_and_cache_attr()
495 if (PyDict_SetItem(d, name, x) < 0) in _lib_dict()
/external/python/cpython2/Python/
Dsymtable.c75 if (PyDict_SetItem(st->st_symbols, ste->ste_id, (PyObject *)ste) < 0) in ste_new()
360 if (PyDict_SetItem((DICT), (NAME), o) < 0) { \
390 if (PyDict_SetItem(global, name, Py_None) < 0) in analyze_name()
400 if (PyDict_SetItem(local, name, Py_None) < 0) in analyze_name()
416 if (PyDict_SetItem(free, name, Py_None) < 0) in analyze_name()
471 if (PyDict_SetItem(scope, name, w) < 0) in analyze_cells()
548 if (PyDict_SetItem(symbols, name, u) < 0) { in update_symbols()
577 if (PyDict_SetItem(symbols, name, o) < 0) { in update_symbols()
590 if (PyDict_SetItem(symbols, name, free_value) < 0) { in update_symbols()
911 if (PyDict_SetItem(dict, mangled, o) < 0) { in symtable_add_def()
[all …]
Dimport.c521 if (PyDict_SetItem(modules, key, Py_None) < 0) { in PyImport_Cleanup()
544 if (PyDict_SetItem(modules, key, Py_None) < 0) { in PyImport_Cleanup()
674 if (PyDict_SetItem(modules, name, m) != 0) { in _PyImport_AddModuleObject()
1272 if (PyDict_SetItem(path_importer_cache, p, Py_None) != 0) in get_path_importer()
1300 int err = PyDict_SetItem(path_importer_cache, p, importer); in get_path_importer()
2427 error = PyDict_SetItem(globals, pkgstr, modname); in get_parent()
2445 error = PyDict_SetItem(globals, pkgstr, Py_None); in get_parent()
2465 error = PyDict_SetItem(globals, pkgstr, pkgname); in get_parent()
/external/python/cpython2/Modules/_sqlite/
Dmicroprotocols.c67 rc = PyDict_SetItem(psyco_adapters, key, cast); in pysqlite_microprotocols_add()
Dconnection.c887 if (PyDict_SetItem(self->function_pinboard, func, Py_None) == -1) in pysqlite_connection_create_function()
919 if (PyDict_SetItem(self->function_pinboard, aggregate_class, Py_None) == -1) in pysqlite_connection_create_aggregate()
1016 if (PyDict_SetItem(self->function_pinboard, authorizer_cb, Py_None) == -1) in pysqlite_connection_set_authorizer()
1045 if (PyDict_SetItem(self->function_pinboard, progress_handler, Py_None) == -1) in pysqlite_connection_set_progress_handler()
1510 if (PyDict_SetItem(self->collations, uppercase_name, callable) == -1) in pysqlite_connection_create_collation()
Dcache.c198 if (PyDict_SetItem(self->mapping, key, (PyObject*)node) != 0) { in pysqlite_cache_get()
/external/python/cpython3/Modules/_sqlite/
Dmicroprotocols.c66 rc = PyDict_SetItem(psyco_adapters, key, cast); in pysqlite_microprotocols_add()
Dcache.c203 if (PyDict_SetItem(self->mapping, key, (PyObject*)node) != 0) { in pysqlite_cache_get()
/external/libnl/python/netlink/genl/
Dcapi.i104 PyDict_SetItem(attrs, k, v); in py_genlmsg_parse()
/external/python/cpython2/PC/
Dwinsound.c156 PyDict_SetItem(dict, k, v); in add_define()
/external/python/cpython3/Include/
Ddictobject.h24 PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
/external/python/cpython3/PC/
Dwinsound.c203 PyDict_SetItem(dict, k, v); in add_define()
/external/python/cpython2/Include/
Ddictobject.h112 PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
/external/python/cpython3/Python/
Dsymtable.c104 if (PyDict_SetItem(st->st_blocks, ste->ste_id, (PyObject *)ste) < 0) in ste_new()
482 if (PyDict_SetItem((DICT), (NAME), o) < 0) { \
595 if (PyDict_SetItem(scopes, name, v_cell) < 0) in analyze_cells()
644 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
678 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
697 if (PyDict_SetItem(symbols, name, v_free) < 0) { in update_symbols()
1061 if (PyDict_SetItem(dict, mangled, o) < 0) { in symtable_add_def_helper()
1080 if (PyDict_SetItem(st->st_global, mangled, o) < 0) { in symtable_add_def_helper()
/external/python/cpython3/Modules/
Derrnomodule.c65 if (PyDict_SetItem(module_dict, name, code) < 0) { in _add_errcode()
69 if (PyDict_SetItem(error_dict, code, name) < 0) { in _add_errcode()
Dpyexpat.c232 PyDict_SetItem(self->intern, result, result) == 0) in string_intern()
384 else if (PyDict_SetItem(container, n, v)) { in my_StartElementHandler()
1625 if (PyDict_SetItem(Xmlparsetype.tp_dict, PyDescr_NAME(descr), descr) < 0) { in init_handler_descrs()
1772 res = PyDict_SetItem(rev_codes_dict, tmpnum, tmpstr); \ in MODULE_INITFUNC()
/external/python/cpython3/Objects/
Ddictobject.c1550 PyDict_SetItem(PyObject *op, PyObject *key, PyObject *value) in PyDict_SetItem() function
1978 status = PyDict_SetItem(d, key, value); in _PyDict_FromKeys()
2173 return PyDict_SetItem((PyObject *)mp, v, w); in dict_ass_sub()
2462 if (PyDict_SetItem(d, key, value) < 0) { in PyDict_MergeFromSeq2()
2469 if (PyErr_Occurred() || PyDict_SetItem(d, key, value) < 0) { in PyDict_MergeFromSeq2()
2622 status = PyDict_SetItem(a, key, value); in dict_merge()
3392 if (PyDict_SetItem(self, PyTuple_GET_ITEM(kwnames, i), args[i]) < 0) { in dict_vectorcall()
3497 return PyDict_SetItem(v, kv, item); in _PyDict_SetItemId()
3509 err = PyDict_SetItem(v, kv, item); in PyDict_SetItemString()
4820 res = PyDict_SetItem(dict, key, value); in _PyObjectDict_SetItem()
[all …]
Dmoduleobject.c591 if (PyDict_SetItem(d, key, Py_None) != 0) { in _PyModule_ClearDict()
612 if (PyDict_SetItem(d, key, Py_None) != 0) { in _PyModule_ClearDict()
/external/python/cpython2/Doc/c-api/
Ddict.rst79 .. c:function:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
187 if (PyDict_SetItem(self->dict, key, o) < 0) {
/external/python/cpython2/Modules/
Dthreadmodule.c308 r = PyDict_SetItem(self->dummies, wr, ldict); in _local_create_dummy()
312 r = PyDict_SetItem(tdict, self->key, (PyObject *) dummy); in _local_create_dummy()
/external/python/cpython2/PC/os2vacpp/
Dpython.def129 PyDict_SetItem
/external/python/cpython3/Doc/c-api/
Ddict.rst63 .. c:function:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
197 if (PyDict_SetItem(self->dict, key, o) < 0) {

12345