Skip to content
Merged
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
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
ZeroIntensity and vstinner authored Dec 1, 2025
commit 68d14c0da221b6f6396c1193fee369b48c3ff8f7
8 changes: 4 additions & 4 deletions Doc/c-api/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
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 :class:`types.MemberDescriptorType` objects in the Python layer.
to :class:`types.MemberDescriptorType` objects in Python.



Expand All @@ -46,10 +46,10 @@
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 :class:`types.MemberDescriptorType`
objects in the Python layer.
objects in Python.


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

Check warning on line 52 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 Down Expand Up @@ -93,8 +93,8 @@

The type object for C-level class method descriptor objects.
This is the type of the descriptors created for :func:`classmethod` defined in
C extension types, and is the same object as :class:`classmethod` in the
Python layer.
C extension types, and is the same object as :class:`classmethod`
in Python.


.. c:function:: PyObject *PyClassMethod_New(PyObject *callable)
Expand Down
Loading