@@ -6,6 +6,7 @@ extern "C" { |
|
|
6 |
6 |
|
7 |
7 |
|
8 |
8 |
/* OrderedDict */ |
|
9 |
+/* This API is optional and mostly redundant. */ |
9 |
10 |
|
10 |
11 |
#ifndef Py_LIMITED_API |
11 |
12 |
|
@@ -21,10 +22,6 @@ PyAPI_DATA(PyTypeObject) PyODictValues_Type; |
|
|
21 |
22 |
#define PyODict_CheckExact(op) (Py_TYPE(op) == &PyODict_Type) |
22 |
23 |
#define PyODict_SIZE(op) PyDict_GET_SIZE((op)) |
23 |
24 |
|
24 |
|
-#endif /* Py_LIMITED_API */ |
25 |
|
- |
26 |
|
-#if !defined(Py_LIMITED_API) | |
27 |
|
- |
28 |
25 |
PyAPI_FUNC(PyObject *) PyODict_New(void); |
29 |
26 |
PyAPI_FUNC(int) PyODict_SetItem(PyObject *od, PyObject *key, PyObject *item); |
30 |
27 |
PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key); |