summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-12-25 00:08:42 (GMT)
committerGitHub <noreply@github.com>2017-12-25 00:08:42 (GMT)
commit1b3029ac8370ac76fa9571aef540e10aed0667ff (patch)
treef69deaf1da0f8a9785175fafdf75f53cf56eefb6 /Include
parent4f146f9ed133b9ad56d4ee7a653396836af34067 (diff)
downloadcpython-1b3029ac8370ac76fa9571aef540e10aed0667ff.zip
cpython-1b3029ac8370ac76fa9571aef540e10aed0667ff.tar.gz
cpython-1b3029ac8370ac76fa9571aef540e10aed0667ff.tar.bz2
bpo-29084: Exclude C API for OrderedDict from the limited C API. (#4900)
Diffstat (limited to 'Include')
-rw-r--r--Include/odictobject.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Include/odictobject.h b/Include/odictobject.h
index ff6ad64..8378dc4 100644
--- a/Include/odictobject.h
+++ b/Include/odictobject.h
@@ -6,6 +6,7 @@ extern "C" {
/* OrderedDict */
+/* This API is optional and mostly redundant. */
#ifndef Py_LIMITED_API
@@ -21,10 +22,6 @@ PyAPI_DATA(PyTypeObject) PyODictValues_Type;
#define PyODict_CheckExact(op) (Py_TYPE(op) == &PyODict_Type)
#define PyODict_SIZE(op) PyDict_GET_SIZE((op))
-#endif /* Py_LIMITED_API */
-
-#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
-
PyAPI_FUNC(PyObject *) PyODict_New(void);
PyAPI_FUNC(int) PyODict_SetItem(PyObject *od, PyObject *key, PyObject *item);
PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key);