mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Subsumed mappingobject.h in dictobject.h.
This commit is contained in:
parent
9637432265
commit
2ec9031b55
3 changed files with 21 additions and 67 deletions
|
@ -35,9 +35,27 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
******************************************************************/
|
||||
|
||||
/* All in the sake of backward compatibility... */
|
||||
/* Dictionary object type -- mapping from hashable object to object */
|
||||
|
||||
#include "mappingobject.h"
|
||||
extern DL_IMPORT(PyTypeObject) PyDict_Type;
|
||||
|
||||
#define PyDict_Check(op) ((op)->ob_type == &PyDict_Type)
|
||||
|
||||
extern PyObject *PyDict_New Py_PROTO((void));
|
||||
extern PyObject *PyDict_GetItem Py_PROTO((PyObject *mp, PyObject *key));
|
||||
extern int PyDict_SetItem Py_PROTO((PyObject *mp, PyObject *key, PyObject *item));
|
||||
extern int PyDict_DelItem Py_PROTO((PyObject *mp, PyObject *key));
|
||||
extern void PyDict_Clear Py_PROTO((PyObject *mp));
|
||||
extern int PyDict_Next
|
||||
Py_PROTO((PyObject *mp, int *pos, PyObject **key, PyObject **value));
|
||||
extern PyObject *PyDict_Keys Py_PROTO((PyObject *mp));
|
||||
extern PyObject *PyDict_Values Py_PROTO((PyObject *mp));
|
||||
extern PyObject *PyDict_Items Py_PROTO((PyObject *mp));
|
||||
extern int PyDict_Size Py_PROTO((PyObject *mp));
|
||||
|
||||
extern PyObject *PyDict_GetItemString Py_PROTO((PyObject *dp, char *key));
|
||||
extern int PyDict_SetItemString Py_PROTO((PyObject *dp, char *key, PyObject *item));
|
||||
extern int PyDict_DelItemString Py_PROTO((PyObject *dp, char *key));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue