summaryrefslogtreecommitdiffstats
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorMartin v. Loewis <martin@v.loewis.de>2012-04-24 17:13:57 (GMT)
committerMartin v. Loewis <martin@v.loewis.de>2012-04-24 17:13:57 (GMT)
commit4f2f3b6217a56680d425f4011502ba2f83cfd5af (patch)
treea2f0eb470417ed63fe79139333db65b4009cd5fe /Include/dictobject.h
parentf0c10f084022073c76d12ff66525e1b52d7188b7 (diff)
downloadcpython-4f2f3b6217a56680d425f4011502ba2f83cfd5af.zip
cpython-4f2f3b6217a56680d425f4011502ba2f83cfd5af.tar.gz
cpython-4f2f3b6217a56680d425f4011502ba2f83cfd5af.tar.bz2
Account for shared keys in type's __sizeof__ (#13903).
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 36048f6..d908524 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -75,6 +75,7 @@ PyAPI_FUNC(int) _PyDict_Contains(PyObject *mp, PyObject *key, Py_hash_t hash);
PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);
PyAPI_FUNC(void) _PyDict_MaybeUntrack(PyObject *mp);
PyAPI_FUNC(int) _PyDict_HasOnlyStringKeys(PyObject *mp);
+Py_ssize_t _PyDict_KeysSize(PyDictKeysObject *keys);
#define _PyDict_HasSplitTable(d) ((d)->ma_values != NULL)
PyAPI_FUNC(int) PyDict_ClearFreeList(void);