From: Benjamin Peterson Date: Sat, 3 May 2014 23:39:15 +0000 (-0400) Subject: do not expose known hash api in stable API X-Git-Tag: v3.5.0a1~1744 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39992d3043b618ca6a2e3ef67777f413a1824b6e;p=thirdparty%2FPython%2Fcpython.git do not expose known hash api in stable API --- diff --git a/Include/dictobject.h b/Include/dictobject.h index 3e0544ab0203..09dff5919128 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -50,8 +50,10 @@ PyAPI_DATA(PyTypeObject) PyDictValues_Type; 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 @@ PyAPI_FUNC(PyObject *) PyDict_SetDefault( 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(