Staging
v0.5.1
https://github.com/python/cpython
Revision 10df96affd0f3e21a7750db98038f8419b91db95 authored by Mariatta on 06 July 2017, 03:55:18 UTC, committed by GitHub on 06 July 2017, 03:55:18 UTC
(cherry picked from commit 76c567ee27342d76f631a35c8291b715b2a61f3e)
1 parent c48a000
Raw File
Tip revision: 10df96affd0f3e21a7750db98038f8419b91db95 authored by Mariatta on 06 July 2017, 03:55:18 UTC
Fix trivial typo in json module docstring (GH-2274) (GH-2431)
Tip revision: 10df96a
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