mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
bpo-29084: Exclude C API for OrderedDict from the limited C API. (#4900)
This commit is contained in:
parent
4f146f9ed1
commit
1b3029ac83
2 changed files with 3 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
/* OrderedDict */
|
/* OrderedDict */
|
||||||
|
/* This API is optional and mostly redundant. */
|
||||||
|
|
||||||
#ifndef Py_LIMITED_API
|
#ifndef Py_LIMITED_API
|
||||||
|
|
||||||
|
|
@ -21,10 +22,6 @@ PyAPI_DATA(PyTypeObject) PyODictValues_Type;
|
||||||
#define PyODict_CheckExact(op) (Py_TYPE(op) == &PyODict_Type)
|
#define PyODict_CheckExact(op) (Py_TYPE(op) == &PyODict_Type)
|
||||||
#define PyODict_SIZE(op) PyDict_GET_SIZE((op))
|
#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(PyObject *) PyODict_New(void);
|
||||||
PyAPI_FUNC(int) PyODict_SetItem(PyObject *od, PyObject *key, PyObject *item);
|
PyAPI_FUNC(int) PyODict_SetItem(PyObject *od, PyObject *key, PyObject *item);
|
||||||
PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key);
|
PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
Undocumented C API for OrderedDict has been excluded from the limited C API.
|
||||||
|
It was added by mistake and actually never worked in the limited C API.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue