Staging
v0.5.1
https://github.com/python/cpython
Revision 0b39a556e8aa4d15de21a3305f74e12886d5f31b authored by Martin Panter on 16 May 2016, 07:45:28 UTC, committed by Martin Panter on 16 May 2016, 07:45:28 UTC
2 parent s c944c2d + e6f0609
Raw File
Tip revision: 0b39a556e8aa4d15de21a3305f74e12886d5f31b authored by Martin Panter on 16 May 2016, 07:45:28 UTC
Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5
Tip revision: 0b39a55
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