Skip to content

Commit d38b637

Browse files
committed
desc and dict.rst changes
1 parent 69ad04d commit d38b637

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

Doc/c-api/descriptor.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,26 @@ found in the dictionary of type objects.
2525
2626
The type object for member descriptor objects created from
2727
:c:type:`PyMemberDef` structures. These descriptors expose fields of a
28-
C struct as attributes on a type, and correspond to ``member_descriptor``
28+
C struct as attributes on a type, and correspond to :class:`types.MemberDescriptorType`
2929
objects in the Python layer.
3030
3131
32+
.. c:var:: PyTypeObject PyGetSetDescr_Type
33+
34+
The type object for get/set descriptor objects created from
35+
:c:type:`PyGetSetDef` structures. These descriptors implement attributes
36+
whose value is computed by C getter and setter functions, and are used
37+
for many built-in type attributes.
38+
39+
3240
.. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
3341
3442
3543
.. c:var:: PyTypeObject PyMethodDescr_Type
3644
3745
The type object for method descriptor objects created from
3846
:c:type:`PyMethodDef` structures. These descriptors expose C functions as
39-
methods on a type, and correspond to ``method_descriptor`` objects in the
47+
methods on a type, and correspond to :class:`types.MemberDescriptorType` objects in the
4048
Python layer.
4149
4250
@@ -48,7 +56,7 @@ found in the dictionary of type objects.
4856
The type object for wrapper descriptor objects created by
4957
:c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper
5058
descriptors are used internally to expose special methods implemented
51-
via wrapper structures, and appear in Python as ``wrapper_descriptor``
59+
via wrapper structures, and appear in Python as :class:`types.WrapperDescriptorType`
5260
objects.
5361
5462
@@ -88,14 +96,6 @@ Built-in descriptors
8896
Python layer.
8997
9098
91-
.. c:var:: PyTypeObject PyGetSetDescr_Type
92-
93-
The type object for get/set descriptor objects created from
94-
:c:type:`PyGetSetDef` structures. These descriptors implement attributes
95-
whose value is computed by C getter and setter functions, and are used
96-
for many built-in type attributes.
97-
98-
9999
.. c:function:: PyObject *PyClassMethod_New(PyObject *callable)
100100
101101
Create a new :class:`classmethod` object wrapping *callable*.

Doc/c-api/dict.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ Dictionary Objects
5050
of many built-in types. A :c:type:`PyDictProxy_Type` instance provides a
5151
dynamic, read-only view of an underlying dictionary: changes to the
5252
underlying dictionary are reflected in the proxy, but the proxy itself
53-
does not support mutation operations.
53+
does not support mutation operations.These objects correspond to
54+
:class:`types.MappingProxyType` in Python.
5455
5556
5657
.. c:function:: void PyDict_Clear(PyObject *p)

0 commit comments

Comments
 (0)