Home
last modified time | relevance | path

Searched refs:PyDictObject (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython2/Objects/
Ddictobject.c150 lookdict_string(PyDictObject *mp, PyObject *key, long hash);
225 static PyDictObject *free_list[PyDict_MAXFREELIST];
231 PyDictObject *op; in PyDict_Fini()
243 register PyDictObject *mp; in PyDict_New()
277 mp = PyObject_GC_New(PyDictObject, &PyDict_Type); in PyDict_New()
320 lookdict(PyDictObject *mp, PyObject *key, register long hash) in lookdict()
408 lookdict_string(PyDictObject *mp, PyObject *key, register long hash) in lookdict_string()
483 PyDictObject *mp; in _PyDict_MaybeUntrack()
491 mp = (PyDictObject *) op; in _PyDict_MaybeUntrack()
510 insertdict_by_entry(register PyDictObject *mp, PyObject *key, long hash, in insertdict_by_entry()
[all …]
/external/python/cpython3/Objects/clinic/
Ddictobject.c.h58 dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value);
61 dict_get(PyDictObject *self, PyObject *const *args, Py_ssize_t nargs) in dict_get()
94 dict_setdefault_impl(PyDictObject *self, PyObject *key,
98 dict_setdefault(PyDictObject *self, PyObject *const *args, Py_ssize_t nargs) in dict_setdefault()
132 dict_popitem_impl(PyDictObject *self);
135 dict_popitem(PyDictObject *self, PyObject *Py_UNUSED(ignored)) in dict_popitem()
150 dict___reversed___impl(PyDictObject *self);
153 dict___reversed__(PyDictObject *self, PyObject *Py_UNUSED(ignored)) in dict___reversed__()
/external/python/cpython3/Objects/
Ddictobject.c227 static Py_ssize_t lookdict(PyDictObject *mp, PyObject *key,
229 static Py_ssize_t lookdict_unicode(PyDictObject *mp, PyObject *key,
232 lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key,
234 static Py_ssize_t lookdict_split(PyDictObject *mp, PyObject *key,
237 static int dictresize(PyDictObject *mp, Py_ssize_t minused);
239 static PyObject* dict_iter(PyDictObject *dict);
252 static PyDictObject *free_list[PyDict_MAXFREELIST];
262 PyDictObject *op; in PyDict_ClearFreeList()
280 "free PyDictObject", numfree, sizeof(PyDictObject)); in _PyDict_DebugMallocStats()
467 PyDictObject *mp = (PyDictObject *)op; in _PyDict_CheckConsistency()
[all …]
Ddict-common.h15 (PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject **value_addr);
Dodictobject.c486 PyDictObject od_dict; /* the underlying dict */
534 PyDictKeysObject *keys = ((PyDictObject *)od)->ma_keys; in _odict_get_index_raw()
537 ix = (keys->dk_lookup)((PyDictObject *)od, key, hash, &value); in _odict_get_index_raw()
555 size = ((PyDictObject *)od)->ma_keys->dk_size; in _odict_resize()
579 od->od_resize_sentinel = ((PyDictObject *)od)->ma_keys; in _odict_resize()
590 keys = ((PyDictObject *)od)->ma_keys; in _odict_get_index()
883 Py_ssize_t res = _PyDict_SizeOf((PyDictObject *)od); in odict_sizeof()
/external/python/cpython3/Include/cpython/
Ddictobject.h32 } PyDictObject; typedef
53 #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
59 PyAPI_FUNC(Py_ssize_t) _PyDict_SizeOf(PyDictObject *);
80 PyObject *_PyDict_LoadGlobal(PyDictObject *, PyDictObject *, PyObject *);
86 PyDictObject *dv_dict;
/external/python/cpython2/Include/
Ddictobject.h69 typedef struct _dictobject PyDictObject; typedef
87 PyDictEntry *(*ma_lookup)(PyDictObject *mp, PyObject *key, long hash);
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c56 res = _PyDict_SizeOf((PyDictObject *)self); in PyCStgDict_sizeof()
57 res += sizeof(StgDictObject) - sizeof(PyDictObject); in PyCStgDict_sizeof()
82 memcpy(d + sizeof(PyDictObject), in PyCStgDict_clone()
83 s + sizeof(PyDictObject), in PyCStgDict_clone()
84 sizeof(StgDictObject) - sizeof(PyDictObject)); in PyCStgDict_clone()
Dctypes.h186 PyDictObject dict; /* first part identical to PyDictObject */
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c67 memcpy(d + sizeof(PyDictObject), in PyCStgDict_clone()
68 s + sizeof(PyDictObject), in PyCStgDict_clone()
69 sizeof(StgDictObject) - sizeof(PyDictObject)); in PyCStgDict_clone()
Dctypes.h226 PyDictObject dict; /* first part identical to PyDictObject */
/external/python/cpython2/Modules/
Dxxsubtype.c147 PyDictObject dict;
D_collectionsmodule.c1450 PyDictObject dict;
/external/python/cpython3/Modules/
Dxxsubtype.c147 PyDictObject dict;
D_collectionsmodule.c1953 PyDictObject dict;
D_testcapimodule.c281 return PyBool_FromLong(_PyDict_HasSplitTable((PyDictObject*)arg)); in dict_hassplittable()
4647 PyDictObject *dict; in dict_get_version()
/external/python/cpython3/Doc/c-api/
Dset.rst30 :class:`set` and :class:`frozenset` objects. It is like a :c:type:`PyDictObject`
Ddict.rst11 .. c:type:: PyDictObject
/external/python/cpython2/Doc/c-api/
Dset.rst32 :class:`set` and :class:`frozenset` objects. It is like a :c:type:`PyDictObject`
Ddict.rst11 .. c:type:: PyDictObject
/external/python/cpython3/Python/
Dceval.c2491 ((PyDictObject *)f->f_globals)->ma_version_tag in _PyEval_EvalFrameDefault()
2493 ((PyDictObject *)f->f_builtins)->ma_version_tag) in _PyEval_EvalFrameDefault()
2505 v = _PyDict_LoadGlobal((PyDictObject *)f->f_globals, in _PyEval_EvalFrameDefault()
2506 (PyDictObject *)f->f_builtins, in _PyEval_EvalFrameDefault()
2530 ((PyDictObject *)f->f_globals)->ma_version_tag; in _PyEval_EvalFrameDefault()
2532 ((PyDictObject *)f->f_builtins)->ma_version_tag; in _PyEval_EvalFrameDefault()
/external/python/cpython2/Python/
Dceval.c2355 PyDictObject *d; in PyEval_EvalFrameEx()
2357 d = (PyDictObject *)(f->f_globals); in PyEval_EvalFrameEx()
2369 d = (PyDictObject *)(f->f_builtins); in PyEval_EvalFrameEx()