Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ec9031

Browse files
committed
Subsumed mappingobject.h in dictobject.h.
1 parent 9637432 commit 2ec9031

3 files changed

Lines changed: 22 additions & 68 deletions

File tree

Include/Python.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ PERFORMANCE OF THIS SOFTWARE.
7474
#include "stringobject.h"
7575
#include "tupleobject.h"
7676
#include "listobject.h"
77-
#include "mappingobject.h"
77+
#include "dictobject.h"
7878
#include "methodobject.h"
7979
#include "moduleobject.h"
8080
#include "funcobject.h"

Include/dictobject.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,27 @@ PERFORMANCE OF THIS SOFTWARE.
3535
3636
******************************************************************/
3737

38-
/* All in the sake of backward compatibility... */
39-
40-
#include "mappingobject.h"
38+
/* Dictionary object type -- mapping from hashable object to object */
39+
40+
extern DL_IMPORT(PyTypeObject) PyDict_Type;
41+
42+
#define PyDict_Check(op) ((op)->ob_type == &PyDict_Type)
43+
44+
extern PyObject *PyDict_New Py_PROTO((void));
45+
extern PyObject *PyDict_GetItem Py_PROTO((PyObject *mp, PyObject *key));
46+
extern int PyDict_SetItem Py_PROTO((PyObject *mp, PyObject *key, PyObject *item));
47+
extern int PyDict_DelItem Py_PROTO((PyObject *mp, PyObject *key));
48+
extern void PyDict_Clear Py_PROTO((PyObject *mp));
49+
extern int PyDict_Next
50+
Py_PROTO((PyObject *mp, int *pos, PyObject **key, PyObject **value));
51+
extern PyObject *PyDict_Keys Py_PROTO((PyObject *mp));
52+
extern PyObject *PyDict_Values Py_PROTO((PyObject *mp));
53+
extern PyObject *PyDict_Items Py_PROTO((PyObject *mp));
54+
extern int PyDict_Size Py_PROTO((PyObject *mp));
55+
56+
extern PyObject *PyDict_GetItemString Py_PROTO((PyObject *dp, char *key));
57+
extern int PyDict_SetItemString Py_PROTO((PyObject *dp, char *key, PyObject *item));
58+
extern int PyDict_DelItemString Py_PROTO((PyObject *dp, char *key));
4159

4260
#ifdef __cplusplus
4361
}

Include/mappingobject.h

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)