]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-141004: Document `PyCapsule_Type` (GH-141079) (GH-141199)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Nov 2025 14:16:43 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Nov 2025 14:16:43 +0000 (14:16 +0000)
gh-141004: Document `PyCapsule_Type` (GH-141079)
(cherry picked from commit 7af9b5354dd7633df422b9f720633989b3090199)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Doc/c-api/capsule.rst

index 6da020efc7f27cd17c0a8e1fa509fa4f1f8f5cee..03a848d68ed7aba22ac72db6fa888ec7f26aa5c9 100644 (file)
@@ -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::