Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
desc and dict.rst changes
  • Loading branch information
Yashp002 committed Nov 30, 2025
commit d38b63781f44a972a3967c6bb8abca9b182ac139
22 changes: 11 additions & 11 deletions Doc/c-api/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,30 @@

The type object for member descriptor objects created from
:c:type:`PyMemberDef` structures. These descriptors expose fields of a
C struct as attributes on a type, and correspond to ``member_descriptor``
C struct as attributes on a type, and correspond to :class:`types.MemberDescriptorType`
objects in the Python layer.


.. c:var:: PyTypeObject PyGetSetDescr_Type

The type object for get/set descriptor objects created from
:c:type:`PyGetSetDef` structures. These descriptors implement attributes
whose value is computed by C getter and setter functions, and are used
for many built-in type attributes.


.. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)


.. c:var:: PyTypeObject PyMethodDescr_Type

The type object for method descriptor objects created from
:c:type:`PyMethodDef` structures. These descriptors expose C functions as
methods on a type, and correspond to ``method_descriptor`` objects in the
methods on a type, and correspond to :class:`types.MemberDescriptorType` objects in the
Python layer.


.. c:function:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)

Check warning on line 51 in Doc/c-api/descriptor.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

c:identifier reference target not found: wrapperbase [ref.identifier]


.. c:var:: PyTypeObject PyWrapperDescr_Type
Expand All @@ -48,7 +56,7 @@
The type object for wrapper descriptor objects created by
:c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper
descriptors are used internally to expose special methods implemented
via wrapper structures, and appear in Python as ``wrapper_descriptor``
via wrapper structures, and appear in Python as :class:`types.WrapperDescriptorType`
objects.


Expand Down Expand Up @@ -88,14 +96,6 @@
Python layer.


.. c:var:: PyTypeObject PyGetSetDescr_Type

The type object for get/set descriptor objects created from
:c:type:`PyGetSetDef` structures. These descriptors implement attributes
whose value is computed by C getter and setter functions, and are used
for many built-in type attributes.


.. c:function:: PyObject *PyClassMethod_New(PyObject *callable)

Create a new :class:`classmethod` object wrapping *callable*.
Expand Down
3 changes: 2 additions & 1 deletion Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Dictionary Objects
of many built-in types. A :c:type:`PyDictProxy_Type` instance provides a
dynamic, read-only view of an underlying dictionary: changes to the
underlying dictionary are reflected in the proxy, but the proxy itself
does not support mutation operations.
does not support mutation operations.These objects correspond to
:class:`types.MappingProxyType` in Python.


.. c:function:: void PyDict_Clear(PyObject *p)
Expand Down
Loading