diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-30 22:27:31 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-30 22:27:31 +0000 |
commit | a12c7a762091805db6b6479108951dc2fcb95dde (patch) | |
tree | 15d23befe65d284484cb9549b49b8710b99ff225 /Include/dictobject.h | |
parent | c06653f56708084fc50bdad6c6301d9bc49c6af1 (diff) | |
download | cpython-git-a12c7a762091805db6b6479108951dc2fcb95dde.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 1f1fdde7c9..acffb41042 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)); |