Home
last modified time | relevance | path

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

12345

/external/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc127 PyDict_SetItem(self->values, key, sub_message); in subscript()
144 PyDict_SetItem(self->values, key, py_container); in subscript()
152 PyDict_SetItem(self->values, key, py_container); in subscript()
182 PyDict_SetItem(self->values, key, value); in ass_subscript()
Dmessage.cc1988 if (PyDict_SetItem(extensions_by_name.get(), full_name.get(), in CheckAndGetInteger()
2028 if (PyDict_SetItem(extensions_by_number.get(), number.get(), in CheckAndGetInteger()
2044 PyDict_SetItem(extensions_by_name.get(), message_name.get(), in CheckAndGetInteger()
2640 return PyDict_SetItem(self->composite_fields, name, value) == 0; in CheckAndGetInteger()
2885 PyDict_SetItem(CMessage_Type.tp_dict, kDESCRIPTOR, Py_None); in CheckAndGetInteger()
2897 if (PyDict_SetItem(CMessage_Type.tp_dict, in CheckAndGetInteger()
2901 if (PyDict_SetItem(CMessage_Type.tp_dict, in CheckAndGetInteger()
/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/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/tensorflow/tensorflow/python/util/
Dpy_checkpoint_reader.i60 if (PyDict_SetItem(output_map.get(), key.get(), value.get()) == -1) {
92 if (PyDict_SetItem(output_map.get(), key.get(), value.get()) == -1) {
/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.c67 rc = PyDict_SetItem(psyco_adapters, key, cast); in pysqlite_microprotocols_add()
Dconnection.c830 if (PyDict_SetItem(self->function_pinboard, func, Py_None) == -1) { in pysqlite_connection_create_function()
861 if (PyDict_SetItem(self->function_pinboard, aggregate_class, Py_None) == -1) { in pysqlite_connection_create_aggregate()
983 if (PyDict_SetItem(self->function_pinboard, authorizer_cb, Py_None) == -1) { in pysqlite_connection_set_authorizer()
1014 if (PyDict_SetItem(self->function_pinboard, progress_handler, Py_None) == -1) in pysqlite_connection_set_progress_handler()
1041 if (PyDict_SetItem(self->function_pinboard, trace_callback, Py_None) == -1) in pysqlite_connection_set_trace_callback()
1649 if (PyDict_SetItem(self->collations, uppercase_name, callable) == -1) in pysqlite_connection_create_collation()
Dcache.c197 if (PyDict_SetItem(self->mapping, key, (PyObject*)node) != 0) { in pysqlite_cache_get()
/external/libnl/python/netlink/genl/
Dcapi.i96 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/Python/
Dsymtable.c93 if (PyDict_SetItem(st->st_blocks, ste->ste_id, (PyObject *)ste) < 0) in ste_new()
455 if (PyDict_SetItem((DICT), (NAME), o) < 0) { \
568 if (PyDict_SetItem(scopes, name, v_cell) < 0) in analyze_cells()
617 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
651 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
667 if (PyDict_SetItem(symbols, name, v_free) < 0) { in update_symbols()
1006 if (PyDict_SetItem(dict, mangled, o) < 0) { in symtable_add_def()
1025 if (PyDict_SetItem(st->st_global, mangled, o) < 0) { in symtable_add_def()
/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/Modules/
D_json.c756 if (PyDict_SetItem(s->memo, key, key) < 0) in _parse_object_unicode()
788 if (PyDict_SetItem(rval, key, val) < 0) in _parse_object_unicode()
1518 if (PyDict_SetItem(s->markers, ident, obj)) { in encoder_listencode_obj()
1589 if (PyDict_SetItem(s->markers, ident, dct)) { in encoder_listencode_dict()
1749 if (PyDict_SetItem(s->markers, ident, seq)) { in encoder_listencode_list()
/external/tensorflow/tensorflow/python/grappler/
Dcluster.i302 CHECK_EQ(0, PyDict_SetItem(result, PyString_FromString(node.c_str()), dev)); in TF_GetSupportedDevices()
427 PyDict_SetItem(result, PyString_FromString(device.first.c_str()), ret); in TF_DeterminePeakMemoryUsage()
/external/python/cpython3/Include/
Ddictobject.h82 PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
/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/cpython3/Doc/c-api/
Ddict.rst63 .. c:function:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
194 if (PyDict_SetItem(self->dict, key, o) < 0) {
/external/python/cpython3/Objects/
Dmoduleobject.c606 if (PyDict_SetItem(d, key, Py_None) != 0) in _PyModule_ClearDict()
626 if (PyDict_SetItem(d, key, Py_None) != 0) in _PyModule_ClearDict()
Ddictobject.c1443 PyDict_SetItem(PyObject *op, PyObject *key, PyObject *value) in PyDict_SetItem() function
1865 status = PyDict_SetItem(d, key, value); in _PyDict_FromKeys()
2056 return PyDict_SetItem((PyObject *)mp, v, w); in dict_ass_sub()
2340 int status = PyDict_SetItem(d, key, value); in PyDict_MergeFromSeq2()
2486 status = PyDict_SetItem(a, key, value); in dict_merge()
3279 return PyDict_SetItem(v, kv, item); in _PyDict_SetItemId()
3291 err = PyDict_SetItem(v, kv, item); in PyDict_SetItemString()
4333 res = PyDict_SetItem(dict, key, value); in _PyObjectDict_SetItem()
4373 res = PyDict_SetItem(dict, key, value); in _PyObjectDict_SetItem()
/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) {

12345