summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
commit0db176f8f6cfaf3277e6ef41d92b09a01b263f27 (patch)
tree9c881aaab525015223b7219c8fa12910e66354e9 /Doc/c-api
parent8a1d04c64372d4706572671a21ff9d3e4a6374ca (diff)
downloadcpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.zip
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.gz
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.bz2
Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/dict.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index ac714a6..6bacc32 100644
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -36,11 +36,11 @@ Dictionary Objects
Return a new empty dictionary, or *NULL* on failure.
-.. c:function:: PyObject* PyDictProxy_New(PyObject *dict)
+.. c:function:: PyObject* PyDictProxy_New(PyObject *mapping)
- Return a proxy object for a mapping which enforces read-only behavior.
- This is normally used to create a proxy to prevent modification of the
- dictionary for non-dynamic class types.
+ Return a :class:`types.MappingProxyType` object for a mapping which
+ enforces read-only behavior. This is normally used to create a view to
+ prevent modification of the dictionary for non-dynamic class types.
.. c:function:: void PyDict_Clear(PyObject *p)