summaryrefslogtreecommitdiffstats
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-30 22:27:31 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-30 22:27:31 (GMT)
commita12c7a762091805db6b6479108951dc2fcb95dde (patch)
tree15d23befe65d284484cb9549b49b8710b99ff225 /Include/dictobject.h
parentc06653f56708084fc50bdad6c6301d9bc49c6af1 (diff)
downloadcpython-a12c7a762091805db6b6479108951dc2fcb95dde.zip
cpython-a12c7a762091805db6b6479108951dc2fcb95dde.tar.gz
cpython-a12c7a762091805db6b6479108951dc2fcb95dde.tar.bz2
Add PyDict_Copy() function to C API for dicts. It returns a new
dictionary that contains the same key/value pairs as p.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 1f1fdde..acffb41 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -52,6 +52,8 @@ extern DL_IMPORT(PyObject *) PyDict_Keys Py_PROTO((PyObject *mp));
extern DL_IMPORT(PyObject *) PyDict_Values Py_PROTO((PyObject *mp));
extern DL_IMPORT(PyObject *) PyDict_Items Py_PROTO((PyObject *mp));
extern DL_IMPORT(int) PyDict_Size Py_PROTO((PyObject *mp));
+extern DL_IMPORT(PyObject *) PyDict_Copy Py_PROTO((PyObject *mp));
+
extern DL_IMPORT(PyObject *) PyDict_GetItemString Py_PROTO((PyObject *dp, char *key));
extern DL_IMPORT(int) PyDict_SetItemString Py_PROTO((PyObject *dp, char *key, PyObject *item));