mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add PyDict_Copy() function to C API for dicts. It returns a new
dictionary that contains the same key/value pairs as p.
This commit is contained in:
parent
c06653f567
commit
a12c7a7620
4 changed files with 25 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue