Home
last modified time | relevance | path

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

123

/external/python/cpython3/Objects/
Dmoduleobject.c64 if (PyDict_SetItem(md_dict, &_Py_ID(__name__), name) != 0) in module_init_dict()
66 if (PyDict_SetItem(md_dict, &_Py_ID(__doc__), doc) != 0) in module_init_dict()
68 if (PyDict_SetItem(md_dict, &_Py_ID(__package__), Py_None) != 0) in module_init_dict()
70 if (PyDict_SetItem(md_dict, &_Py_ID(__loader__), Py_None) != 0) in module_init_dict()
72 if (PyDict_SetItem(md_dict, &_Py_ID(__spec__), Py_None) != 0) in module_init_dict()
699 if (PyDict_SetItem(d, key, Py_None) != 0) { in _PyModule_ClearDict()
720 if (PyDict_SetItem(d, key, Py_None) != 0) { in _PyModule_ClearDict()
1156 int result = PyDict_SetItem( in module_get_annotations()
1182 ret = PyDict_SetItem(dict, &_Py_ID(__annotations__), value); in module_set_annotations()
Dtypeobject.c1357 return PyDict_SetItem(dict, &_Py_ID(__module__), value); in type_set_module()
1432 res = PyDict_SetItem(dict, &_Py_ID(__abstractmethods__), value); in type_set_abstractmethods()
1754 return PyDict_SetItem(dict, &_Py_ID(__doc__), value); in type_set_doc()
1779 int result = PyDict_SetItem( in type_get_annotations()
1805 result = PyDict_SetItem(dict, &_Py_ID(__annotations__), value); in type_set_annotations()
1844 int result = PyDict_SetItem(dict, &_Py_ID(__type_params__), value); in type_set_type_params()
2727 if (PyDict_SetItem(set, c, Py_None) < 0) { in set_mro_error()
3767 r = PyDict_SetItem(dict, &_Py_ID(__module__), module); in type_new_set_module()
3863 if (PyDict_SetItem(dict, attr, static_func) < 0) { in type_new_staticmethod()
3892 if (PyDict_SetItem(dict, attr, method) < 0) { in type_new_classmethod()
[all …]
/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/cpython3/Modules/_sqlite/
Dmicroprotocols.c65 rc = PyDict_SetItem(state->psyco_adapters, key, cast); in pysqlite_microprotocols_add()
/external/libnl/python/netlink/genl/
Dcapi.i104 PyDict_SetItem(attrs, k, v); in py_genlmsg_parse()
/external/python/cpython3/Include/
Ddictobject.h24 PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
/external/python/cpython3/Modules/
Derrnomodule.c74 if (PyDict_SetItem(module_dict, name, code) < 0) { in _add_errcode()
78 if (PyDict_SetItem(error_dict, code, name) < 0) { in _add_errcode()
Dxxlimited.c193 return PyDict_SetItem(self->x_attr, name, v); in Xxo_setattro()
D_asynciomodule.c1398 if (PyDict_SetItem(context, &_Py_ID(message), message) < 0 || in FutureObj_finalize()
1399 PyDict_SetItem(context, &_Py_ID(exception), fut->fut_exception) < 0 || in FutureObj_finalize()
1400 PyDict_SetItem(context, &_Py_ID(future), (PyObject*)fut) < 0) { in FutureObj_finalize()
1404 if (PyDict_SetItem(context, &_Py_ID(source_traceback), in FutureObj_finalize()
2556 if (PyDict_SetItem(context, &_Py_ID(message), message) < 0 || in TaskObj_finalize()
2557 PyDict_SetItem(context, &_Py_ID(task), (PyObject*)task) < 0) in TaskObj_finalize()
2563 if (PyDict_SetItem(context, &_Py_ID(source_traceback), in TaskObj_finalize()
D_json.c727 if (PyDict_SetItem(rval, key, val) < 0) in _parse_object_unicode()
1443 if (PyDict_SetItem(s->markers, ident, obj)) { in encoder_listencode_obj()
1569 if (PyDict_SetItem(s->markers, ident, dct)) { in encoder_listencode_dict()
1682 if (PyDict_SetItem(s->markers, ident, seq)) { in encoder_listencode_list()
Dpyexpat.c251 PyDict_SetItem(self->intern, result, result) == 0) in string_intern()
398 else if (PyDict_SetItem(container, n, v)) { in my_StartElementHandler()
1811 int res = PyDict_SetItem(rev_codes_dict, num, str); in add_error()
/external/python/cpython3/Python/
D_warnings.c419 if (PyDict_SetItem(registry, &_Py_ID(version), version_obj) < 0) { in already_warned()
439 return PyDict_SetItem(registry, key, Py_True); in already_warned()
711 PyDict_SetItem(registry, key, Py_True) < 0) in warn_explicit()
921 rc = PyDict_SetItem(globals, &_Py_ID(__warningregistry__), *registry); in setup_context()
Dsymtable.c146 if (PyDict_SetItem(st->st_blocks, ste->ste_id, (PyObject *)ste) < 0) in ste_new()
610 if (PyDict_SetItem((DICT), (NAME), o) < 0) { \
802 int ok = PyDict_SetItem(ste->ste_symbols, k, v_flags); in inline_comprehension()
872 if (PyDict_SetItem(scopes, name, v_cell) < 0) in analyze_cells()
932 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
965 if (PyDict_SetItem(symbols, name, v_new) < 0) { in update_symbols()
990 if (PyDict_SetItem(symbols, name, v_free) < 0) { in update_symbols()
1442 if (PyDict_SetItem(dict, mangled, o) < 0) { in symtable_add_def_helper()
1464 if (PyDict_SetItem(st->st_global, mangled, o) < 0) { in symtable_add_def_helper()
Dintrinsics.c110 err = PyDict_SetItem(locals, name, value); in import_all_from()
Dmodsupport.c163 if (v == NULL || PyDict_SetItem(d, k, v) < 0) { in do_mkdict()
Dsysmodule.c133 return PyDict_SetItem(sd, key, v); in sys_set_object()
2954 if (PyDict_SetItem(opts, name, value) < 0) { in _PySys_AddXOptionWithError()
3624 if (PyDict_SetItem(opts, name, value) < 0) { in sys_add_xoption()
3760 if (PyDict_SetItem(sysdict, &_Py_ID(stderr), pstderr) < 0) { in _PySys_SetPreliminaryStderr()
/external/python/watchdog/src/
Dwatchdog_fsevents.c655 PyDict_SetItem(watch_to_stream, watch, value); in watchdog_add_watch()
725 PyDict_SetItem(thread_to_run_loop, emitter_thread, value); in watchdog_read_events()
/external/python/cpython3/Modules/_testlimitedcapi/
Ddict.c134 RETURN_INT(PyDict_SetItem(mapping, key, value)); in dict_setitem()
/external/python/cpython3/Doc/c-api/
Ddict.rst72 .. c:function:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
82 This is the same as :c:func:`PyDict_SetItem`, but *key* is
286 if (PyDict_SetItem(self->dict, key, o) < 0) {
/external/protobuf/python/google/protobuf/pyext/
Dmap_container.cc511 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in ScalarMapToStr()
698 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in MessageMapToStr()
/external/cronet/tot/third_party/protobuf/python/google/protobuf/pyext/
Dmap_container.cc511 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in ScalarMapToStr()
698 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in MessageMapToStr()
/external/cronet/stable/third_party/protobuf/python/google/protobuf/pyext/
Dmap_container.cc511 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in ScalarMapToStr()
698 if (PyDict_SetItem(dict.get(), key.get(), value.get()) < 0) { in MessageMapToStr()
/external/pytorch/torch/csrc/utils/
Dpythoncapi_compat.h690 if (PyDict_SetItem(kwargs, key, value) < 0) { in PyObject_Vectorcall()
/external/webp/swig/
Dlibwebp_python_wrap.c2520 PyDict_SetItem(dict, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()
2538 PyDict_SetItem(dict, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()
2550 PyDict_SetItem(dict, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()
2573 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()
2591 PyDict_SetItem(dict, SWIG_This(), swig_this); in SWIG_Python_SetSwigThis()
2596 PyDict_SetItem(dict, SWIG_This(), swig_this); in SWIG_Python_SetSwigThis()
2819 PyDict_SetItem(cache, key, obj); in SWIG_Python_TypeQuery()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Dmap.c331 PyDict_SetItem(dict, key, val); in PyUpb_MapContainer_Repr()

123