Home
last modified time | relevance | path

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

1234

/external/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc106 PyObject* value = PyDict_GetItem(self->values, key); in subscript()
192 PyObject* value = PyDict_GetItem(self->values, extension); in ClearExtension()
233 PyObject* result = PyDict_GetItem(extensions_by_name.get(), name); in _FindExtensionByName()
248 PyObject* result = PyDict_GetItem(extensions_by_number.get(), number); in _FindExtensionByNumber()
/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 …]
/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()
/external/python/cpython3/Include/
Dodictobject.h30 #define PyODict_GetItem(od, key) PyDict_GetItem((PyObject *)od, key)
Ddictobject.h70 PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
/external/python/cpython3/Modules/
Dzipimport.c158 files = PyDict_GetItem(zip_directory_cache, filename); in zipimport_zipimporter___init___impl()
347 item = PyDict_GetItem(self->files, fullpath); in get_module_info()
691 toc_entry = PyDict_GetItem(self->files, key); in zipimport_zipimporter_get_data_impl()
770 toc_entry = PyDict_GetItem(self->files, fullpath); in zipimport_zipimporter_get_source_impl()
1485 toc_entry = PyDict_GetItem(self->files, stripped); in get_mtime_of_source()
1556 toc_entry = PyDict_GetItem(self->files, fullpath); in get_module_code()
D_threadmodule.c780 if (tstate->dict && PyDict_GetItem(tstate->dict, self->key)) { in local_clear()
817 dummy = PyDict_GetItem(tdict, self->key); in _ldict()
934 value = PyDict_GetItem(ldict, name); in local_getattro()
961 ldict = PyDict_GetItem(self->dummies, dummyweakref); in _localdummy_destroyed()
Dxxmodule.c69 PyObject *v = PyDict_GetItem(self->x_attr, name); in Xxo_getattro()
Dxxlimited.c81 PyObject *v = PyDict_GetItem(self->x_attr, name); in Xxo_getattro()
/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/cpython3/Modules/_sqlite/
Dmicroprotocols.c89 adapter = PyDict_GetItem(psyco_adapters, key); in pysqlite_microprotocols_adapt()
Dcache.c122 node = (pysqlite_Node*)PyDict_GetItem(self->mapping, key); in pysqlite_cache_get()
/external/python/cpython3/Doc/c-api/
Ddict.rst93 .. c:function:: PyObject* PyDict_GetItem(PyObject *p, PyObject *key)
105 Variant of :c:func:`PyDict_GetItem` that does not suppress
113 This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
/external/python/cpython2/Include/
Ddictobject.h110 PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
/external/python/cpython3/Python/
Dsymtable.c358 v = PyDict_GetItem(st->st_blocks, k); in PySymtable_Lookup()
375 PyObject *v = PyDict_GetItem(ste->ste_symbols, name); in PyST_GetScope()
610 v_scope = PyDict_GetItem(scopes, name); in update_symbols()
636 v = PyDict_GetItem(symbols, name); in update_symbols()
971 o = PyDict_GetItem(st->st_cur->ste_symbols, mangled); in symtable_lookup()
990 if ((o = PyDict_GetItem(dict, mangled))) { in symtable_add_def()
1019 if ((o = PyDict_GetItem(st->st_global, mangled))) { in symtable_add_def()
/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()
/external/python/cpython3/Objects/
Dnamespaceobject.c105 value = PyDict_GetItem(d, key); in namespace_repr()
/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/cpython3/Modules/_ctypes/
Dcallproc.c149 errobj = PyDict_GetItem(dict, error_object_name); in _ctypes_get_errobj()
1706 result = PyDict_GetItem(_ctypes_ptrtype_cache, cls); in POINTER()
1766 typ = PyDict_GetItem(_ctypes_ptrtype_cache, (PyObject *)Py_TYPE(arg)); in pointer()
/external/tensorflow/tensorflow/python/util/
Dutil.cc366 PyObject* elem = PyDict_GetItem(dict_, key.get()); in next()
729 if (PyDict_GetItem(o2, key) == nullptr) { in AssertSameStructureHelper()

1234