From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:16:43 +0000 (+0100) Subject: [3.14] gh-141004: Document `PyCapsule_Type` (GH-141079) (GH-141199) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f8ec95bb079c86c82a397516ea5da0b2cc1033d;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-141004: Document `PyCapsule_Type` (GH-141079) (GH-141199) gh-141004: Document `PyCapsule_Type` (GH-141079) (cherry picked from commit 7af9b5354dd7633df422b9f720633989b3090199) Co-authored-by: Peter Bierma --- diff --git a/Doc/c-api/capsule.rst b/Doc/c-api/capsule.rst index 6da020efc7f2..03a848d68ed7 100644 --- a/Doc/c-api/capsule.rst +++ b/Doc/c-api/capsule.rst @@ -22,6 +22,12 @@ Refer to :ref:`using-capsules` for more information on using these objects. loaded modules. +.. c:var:: PyTypeObject PyCapsule_Type + + The type object corresponding to capsule objects. This is the same object + as :class:`types.CapsuleType` in the Python layer. + + .. c:type:: PyCapsule_Destructor The type of a destructor callback for a capsule. Defined as::