[Python-checkins] cpython: do not expose known hash api in stable API
benjamin.peterson
python-checkins at python.org
Sun May 4 02:19:04 CEST 2014
http://hg.python.org/cpython/rev/e947dc6a33d9
changeset: 90547:e947dc6a33d9
user: Benjamin Peterson <benjamin at python.org>
date: Sat May 03 19:39:15 2014 -0400
summary:
do not expose known hash api in stable API
files:
Include/dictobject.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Include/dictobject.h b/Include/dictobject.h
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -50,8 +50,10 @@
PyAPI_FUNC(PyObject *) PyDict_New(void);
PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
Py_hash_t hash);
+#endif
PyAPI_FUNC(PyObject *) PyDict_GetItemWithError(PyObject *mp, PyObject *key);
PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
struct _Py_Identifier *key);
@@ -60,8 +62,10 @@
PyObject *mp, PyObject *key, PyObject *defaultobj);
#endif
PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
PyObject *item, Py_hash_t hash);
+#endif
PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);
PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list