diff options
author | Guido van Rossum <guido@python.org> | 1997-05-13 21:23:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-13 21:23:32 (GMT) |
commit | 2ec9031b5589db81026f5fc3a11070002ec4d0d7 (patch) | |
tree | 40fddf2c29e1b92cadad9a25ff8f1393bea69d83 /Include/dictobject.h | |
parent | 96374322652039ce5f592bc03c9c9bd82471bb5a (diff) | |
download | cpython-2ec9031b5589db81026f5fc3a11070002ec4d0d7.zip cpython-2ec9031b5589db81026f5fc3a11070002ec4d0d7.tar.gz cpython-2ec9031b5589db81026f5fc3a11070002ec4d0d7.tar.bz2 |
Subsumed mappingobject.h in dictobject.h.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r-- | Include/dictobject.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index aa45f88..31dcf43 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -35,9 +35,27 @@ PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ -/* All in the sake of backward compatibility... */ - -#include "mappingobject.h" +/* Dictionary object type -- mapping from hashable object to object */ + +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 } |