Lines Matching refs:PyDictObject
226 static Py_ssize_t lookdict(PyDictObject *mp, PyObject *key,
228 static Py_ssize_t lookdict_unicode(PyDictObject *mp, PyObject *key,
231 lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key,
233 static Py_ssize_t lookdict_split(PyDictObject *mp, PyObject *key,
236 static int dictresize(PyDictObject *mp, Py_ssize_t minused);
238 static PyObject* dict_iter(PyDictObject *dict);
251 static PyDictObject *free_list[PyDict_MAXFREELIST];
261 PyDictObject *op; in PyDict_ClearFreeList()
279 "free PyDictObject", numfree, sizeof(PyDictObject)); in _PyDict_DebugMallocStats()
440 _PyDict_CheckConsistency(PyDictObject *mp) in _PyDict_CheckConsistency()
575 PyDictObject *mp; in new_dict()
584 mp = PyObject_GC_New(PyDictObject, &PyDict_Type); in new_dict()
620 clone_combined_dict(PyDictObject *orig) in clone_combined_dict()
649 PyDictObject *new = (PyDictObject *)new_dict(keys, NULL); in clone_combined_dict()
727 lookdict(PyDictObject *mp, PyObject *key, in lookdict()
783 lookdict_unicode(PyDictObject *mp, PyObject *key, in lookdict_unicode()
826 lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key, in lookdict_unicode_nodummy()
871 lookdict_split(PyDictObject *mp, PyObject *key, in lookdict_split()
917 if (((PyDictObject *)dict)->ma_keys->dk_lookup != lookdict) in _PyDict_HasOnlyStringKeys()
938 PyDictObject *mp; in _PyDict_MaybeUntrack()
946 mp = (PyDictObject *) op; in _PyDict_MaybeUntrack()
992 insertion_resize(PyDictObject *mp) in insertion_resize()
1003 insertdict(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject *value) in insertdict()
1116 dictresize(PyDictObject *mp, Py_ssize_t minsize) in dictresize()
1213 PyDictObject *mp = (PyDictObject *)op; in make_keys_shared()
1294 PyDictObject *mp = (PyDictObject *)op; in PyDict_GetItem()
1344 PyDictObject *mp = (PyDictObject *)op; in _PyDict_GetItem_KnownHash()
1368 PyDictObject*mp = (PyDictObject *)op; in PyDict_GetItemWithError()
1408 _PyDict_LoadGlobal(PyDictObject *globals, PyDictObject *builtins, PyObject *key) in _PyDict_LoadGlobal()
1445 PyDictObject *mp; in PyDict_SetItem()
1453 mp = (PyDictObject *)op; in PyDict_SetItem()
1470 PyDictObject *mp; in _PyDict_SetItem_KnownHash()
1479 mp = (PyDictObject *)op; in _PyDict_SetItem_KnownHash()
1486 delitem_common(PyDictObject *mp, Py_hash_t hash, Py_ssize_t ix, in delitem_common()
1529 PyDictObject *mp; in _PyDict_DelItem_KnownHash()
1538 mp = (PyDictObject *)op; in _PyDict_DelItem_KnownHash()
1568 PyDictObject *mp; in _PyDict_DelItemIf()
1581 mp = (PyDictObject *)op; in _PyDict_DelItemIf()
1616 PyDictObject *mp; in PyDict_Clear()
1623 mp = ((PyDictObject *)op); in PyDict_Clear()
1659 PyDictObject *mp; in _PyDict_Next()
1665 mp = (PyDictObject *)op; in _PyDict_Next()
1729 PyDictObject *mp; in _PyDict_Pop_KnownHash()
1732 mp = (PyDictObject *)dict; in _PyDict_Pop_KnownHash()
1785 if (((PyDictObject *)dict)->ma_used == 0) { in _PyDict_Pop()
1815 if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) { in _PyDict_FromKeys()
1817 PyDictObject *mp = (PyDictObject *)d; in _PyDict_FromKeys()
1837 PyDictObject *mp = (PyDictObject *)d; in _PyDict_FromKeys()
1893 dict_dealloc(PyDictObject *mp) in dict_dealloc()
1924 dict_repr(PyDictObject *mp) in dict_repr()
2007 dict_length(PyDictObject *mp) in dict_length()
2013 dict_subscript(PyDictObject *mp, PyObject *key) in dict_subscript()
2051 dict_ass_sub(PyDictObject *mp, PyObject *v, PyObject *w) in dict_ass_sub()
2066 dict_keys(PyDictObject *mp) in dict_keys()
2110 dict_values(PyDictObject *mp) in dict_values()
2154 dict_items(PyDictObject *mp) in dict_items()
2354 assert(_PyDict_CheckConsistency((PyDictObject *)d)); in PyDict_MergeFromSeq2()
2368 PyDictObject *mp, *other; in dict_merge()
2383 mp = (PyDictObject*)a; in dict_merge()
2385 other = (PyDictObject*)b; in dict_merge()
2499 assert(_PyDict_CheckConsistency((PyDictObject *)a)); in dict_merge()
2523 dict_copy(PyDictObject *mp) in dict_copy()
2532 PyDictObject *mp; in PyDict_Copy()
2540 mp = (PyDictObject *)o; in PyDict_Copy()
2547 PyDictObject *split_copy; in PyDict_Copy()
2553 split_copy = PyObject_GC_New(PyDictObject, &PyDict_Type); in PyDict_Copy()
2609 return ((PyDictObject *)mp)->ma_used; in PyDict_Size()
2619 return dict_keys((PyDictObject *)mp); in PyDict_Keys()
2629 return dict_values((PyDictObject *)mp); in PyDict_Values()
2639 return dict_items((PyDictObject *)mp); in PyDict_Items()
2647 dict_equal(PyDictObject *a, PyDictObject *b) in dict_equal()
2700 cmp = dict_equal((PyDictObject *)v, (PyDictObject *)w); in dict_richcompare()
2723 dict___contains__(PyDictObject *self, PyObject *key) in dict___contains__()
2726 register PyDictObject *mp = self; in dict___contains__()
2756 dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value) in dict_get_impl()
2782 PyDictObject *mp = (PyDictObject *)d; in PyDict_SetDefault()
2874 dict_setdefault_impl(PyDictObject *self, PyObject *key, in dict_setdefault_impl()
2886 dict_clear(PyDictObject *mp) in dict_clear()
2893 dict_pop(PyDictObject *mp, PyObject *args) in dict_pop()
2904 dict_popitem(PyDictObject *mp) in dict_popitem()
2966 PyDictObject *mp = (PyDictObject *)op; in dict_traverse()
3001 static PyObject *dictiter_new(PyDictObject *, PyTypeObject *);
3004 _PyDict_SizeOf(PyDictObject *mp) in _PyDict_SizeOf()
3032 dict_sizeof(PyDictObject *mp) in dict_sizeof()
3108 PyDictObject *mp = (PyDictObject *)op; in PyDict_Contains()
3127 PyDictObject *mp = (PyDictObject *)op; in _PyDict_Contains()
3155 PyDictObject *d; in dict_new()
3161 d = (PyDictObject *)self; in dict_new()
3185 dict_iter(PyDictObject *dict) in dict_iter()
3204 sizeof(PyDictObject),
3322 PyDictObject *di_dict; /* Set to NULL when iterator is exhausted */
3330 dictiter_new(PyDictObject *dict, PyTypeObject *itertype) in dictiter_new()
3403 PyDictObject *d = di->di_dict; in dictiter_iternextkey()
3485 PyDictObject *d = di->di_dict; in dictiter_iternextvalue()
3566 PyDictObject *d = di->di_dict; in dictiter_iternextitem()
3759 dv->dv_dict = (PyDictObject *)dict; in _PyDictView_New()
4332 int was_shared = (cached == ((PyDictObject *)dict)->ma_keys); in _PyObjectDict_SetItem()
4336 cached != ((PyDictObject *)dict)->ma_keys) { in _PyObjectDict_SetItem()