summaryrefslogtreecommitdiffstats
path: root/Doc/api/api.tex
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 /Doc/api/api.tex
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 'Doc/api/api.tex')
-rw-r--r--Doc/api/api.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index d2e6a44..d67085a 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -2081,6 +2081,10 @@ Returns true if its argument is a \ctype{PyDictObject}.
Returns a new empty dictionary.
\end{cfuncdesc}
+\begin{cfuncdesc}{PyObject*}{PyDict_Copy}{PyObject *p}
+Returns a new dictionary that contains the same key/value pairs as p.
+\end{cfuncdesc}
+
\begin{cfuncdesc}{void}{PyDict_Clear}{PyDictObject *p}
Empties an existing dictionary of all key/value pairs.
\end{cfuncdesc}