Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: d571dd3c98660298dae371899a0331135e843be2 authored by Larry Hastings on 04 March 2019, 02:09:45 UTC
Version bump & copyright year update for 3.5.7rc1.
Tip revision: d571dd3
dict-common.h
#ifndef Py_DICT_COMMON_H
#define Py_DICT_COMMON_H

typedef struct {
    /* Cached hash code of me_key. */
    Py_hash_t me_hash;
    PyObject *me_key;
    PyObject *me_value; /* This field is only meaningful for combined tables */
} PyDictKeyEntry;

typedef PyDictKeyEntry *(*dict_lookup_func)
(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject ***value_addr);

struct _dictkeysobject {
    Py_ssize_t dk_refcnt;
    Py_ssize_t dk_size;
    dict_lookup_func dk_lookup;
    Py_ssize_t dk_usable;
    PyDictKeyEntry dk_entries[1];
};

#endif
back to top