Home
last modified time | relevance | path

Searched refs:PyDict_GetItem (Results 1 – 25 of 62) sorted by relevance

123

/external/tensorflow/tensorflow/python/util/
Dnest.cc115 if (PyDict_GetItem(flat_dictionary, flat_key) != nullptr) { in FlattenDictItems()
128 if (PyDict_GetItem(flat_dictionary, key) != nullptr) { in FlattenDictItems()
Dutil.cc412 PyObject* elem = PyDict_GetItem(dict_, key.get()); in next()
820 if (PyDict_GetItem(o2, key) == nullptr) { in AssertSameStructureHelper()
/external/python/cpython2/Python/
Dsymtable.c294 v = PyDict_GetItem(st->st_symbols, k); in PySymtable_Lookup()
311 PyObject *v = PyDict_GetItem(ste->ste_symbols, name); in PyST_GetScope()
392 if (bound && PyDict_GetItem(bound, name)) { in analyze_name()
402 if (PyDict_GetItem(global, name)) { in analyze_name()
413 if (bound && PyDict_GetItem(bound, name)) { in analyze_name()
423 else if (global && PyDict_GetItem(global, name)) { in analyze_name()
465 if (!PyDict_GetItem(free, name)) in analyze_cells()
541 w = PyDict_GetItem(scope, name); in update_symbols()
562 PyObject *o = PyDict_GetItem(symbols, name); in update_symbols()
587 if (!PyDict_GetItem(bound, name)) in update_symbols()
[all …]
D_warnings.c57 warnings_module = PyDict_GetItem(all_modules, warnings_str); in get_warnings_attr()
182 already_warned = PyDict_GetItem(registry, key); in already_warned()
Dimport.c1267 importer = PyDict_GetItem(path_importer_cache, p); in get_path_importer()
2385 pkgname = PyDict_GetItem(globals, pkgstr); in get_parent()
2412 modname = PyDict_GetItem(globals, namestr); in get_parent()
2416 modpath = PyDict_GetItem(globals, pathstr); in get_parent()
2818 parent = PyDict_GetItem(modules, parentname); in PyImport_ReloadModule()
Dceval.c2317 x = PyDict_GetItem(v, w); in PyEval_EvalFrameEx()
2330 x = PyDict_GetItem(f->f_globals, w); in PyEval_EvalFrameEx()
2332 x = PyDict_GetItem(f->f_builtins, w); in PyEval_EvalFrameEx()
2385 x = PyDict_GetItem(f->f_globals, w); in PyEval_EvalFrameEx()
2387 x = PyDict_GetItem(f->f_builtins, w); in PyEval_EvalFrameEx()
4490 if (PyDict_GetItem(kwdict, key) != NULL) { in update_keyword_args()
5197 PyDict_GetItem(locals, name) == v) { in string_concatenate()
/external/python/cffi/c/
Dcall_python.c41 d = PyDict_GetItem(builtins, attr_name); in _get_interpstate_dict()
161 infotuple = PyDict_GetItem(interpstate_dict, interpstate_key); in _update_cache_to_call_python()
Dlib_obj.c237 x = PyDict_GetItem(lib1->l_dict, name); in lib_build_and_cache_attr()
442 x = PyDict_GetItem(lib->l_dict, name); \
Dffi_obj.c188 PyObject *x = PyDict_GetItem(types_dict, arg); in _ffi_type()
1013 tup = PyDict_GetItem(cache, tag); in ffi_init_once()
1061 x = PyDict_GetItem(cache, tag); in ffi_init_once()
/external/python/cpython3/Include/
Dodictobject.h30 #define PyODict_GetItem(od, key) PyDict_GetItem(_PyObject_CAST(od), key)
Ddictobject.h22 PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
/external/python/cpython2/Modules/
Dthreadmodule.c411 PyDict_GetItem(tstate->dict, self->key)) in local_clear()
445 dummy = PyDict_GetItem(tdict, self->key); in _ldict()
561 value = PyDict_GetItem(ldict, name); in local_getattro()
587 ldict = PyDict_GetItem(self->dummies, dummyweakref); in _localdummy_destroyed()
DcPickle.c750 if (!( mv = PyDict_GetItem(self->memo, id))) { in get()
969 if (PyDict_GetItem(self->fast_memo, key)) { in fast_save_enter()
1569 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
1595 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
2259 py_code = PyDict_GetItem(extension_registry, two_tuple); in save_global()
2557 if (PyDict_GetItem(self->memo, py_ob_id)) { in save_reduce()
2676 if (PyDict_GetItem(self->memo, py_ob_id)) { in save()
2771 __reduce__ = PyDict_GetItem(dispatch_table, (PyObject *)type); in save()
3368 module = PyDict_GetItem(module, py_module_name); in find_class()
4203 value = PyDict_GetItem(self->memo, py_str); in load_get()
[all …]
D_hotshot.c352 list = PyDict_GetItem(self->info, key); in unpack_add_info()
780 obj = PyDict_GetItem(self->filemap, fcode->co_filename); in get_fileno()
814 PyObject *name = PyDict_GetItem(dict, obj); in get_fileno()
Dpyexpat.c397 value = PyDict_GetItem(self->intern, result); in string_intern()
1897 errors_module = PyDict_GetItem(d, errmod_name); in MODULE_INITFUNC()
1907 model_module = PyDict_GetItem(d, modelmod_name); in MODULE_INITFUNC()
/external/python/cpython2/Modules/_sqlite/
Dmicroprotocols.c89 adapter = PyDict_GetItem(psyco_adapters, key); in pysqlite_microprotocols_adapt()
Dcache.c123 node = (pysqlite_Node*)PyDict_GetItem(self->mapping, key); in pysqlite_cache_get()
/external/python/cpython2/Include/
Ddictobject.h110 PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
/external/python/cpython3/Doc/c-api/
Ddict.rst96 .. c:function:: PyObject* PyDict_GetItem(PyObject *p, PyObject *key)
108 Variant of :c:func:`PyDict_GetItem` that does not suppress
116 This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
/external/python/cpython2/Objects/
Ddictobject.c708 PyDict_GetItem(PyObject *op, PyObject *key) in PyDict_GetItem() function
1601 if (override || PyDict_GetItem(d, key) == NULL) { in PyDict_MergeFromSeq2()
1672 PyDict_GetItem(a, entry->me_key) == NULL)) { in PyDict_Merge()
1703 if (!override && PyDict_GetItem(a, key) != NULL) { in PyDict_Merge()
1840 thisbval = PyDict_GetItem((PyObject *)b, thiskey); in characterize()
1948 bval = PyDict_GetItem((PyObject *)b, key); in dict_equal()
2509 rv = PyDict_GetItem(v, kv); in PyDict_GetItemString()
3223 found = PyDict_GetItem((PyObject *)dv->dv_dict, key); in dictitems_contains()
Dclassobject.c59 if (PyDict_GetItem(dict, docstr) == NULL) { in PyClass_New()
63 if (PyDict_GetItem(dict, modstr) == NULL) { in PyClass_New()
66 PyObject *modname = PyDict_GetItem(globals, namestr); in PyClass_New()
207 PyObject *value = PyDict_GetItem(cp->cl_dict, name); in class_lookup()
750 v = PyDict_GetItem(inst->in_dict, name); in instance_getattr2()
803 v = PyDict_GetItem(inst->in_dict, name); in _PyInstance_Lookup()
Dfuncobject.c51 module = PyDict_GetItem(globals, __name__); in PyFunction_New()
/external/python/cpython2/Doc/c-api/
Ddict.rst109 .. c:function:: PyObject* PyDict_GetItem(PyObject *p, PyObject *key)
117 This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
/external/python/cpython2/PC/os2vacpp/
Dpython.def123 PyDict_GetItem
/external/python/cpython2/Modules/_ctypes/
Dcallproc.c150 errobj = PyDict_GetItem(dict, error_object_name); in CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR()
1824 result = PyDict_GetItem(_ctypes_ptrtype_cache, cls); in POINTER()
1880 typ = PyDict_GetItem(_ctypes_ptrtype_cache, (PyObject *)Py_TYPE(arg)); in pointer()

123