]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-141004: Document `PyMemoryView_Type` (GH-141034) (GH-141054)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Nov 2025 16:51:34 +0000 (17:51 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Nov 2025 16:51:34 +0000 (16:51 +0000)
gh-141004: Document `PyMemoryView_Type` (GH-141034)
(cherry picked from commit 3f6aca1be49f96c5c5f52040b8e78c73c79c0a86)

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

index f6038032805259f929fb56d95a33473e1abb7db6..e4ac8b57673407c64a6498458a33d37c3249becb 100644 (file)
@@ -13,6 +13,12 @@ A :class:`memoryview` object exposes the C level :ref:`buffer interface
 any other object.
 
 
+.. c:var:: PyTypeObject PyMemoryView_Type
+
+   This instance of :c:type:`PyTypeObject` represents the Python memoryview
+   type. This is the same object as :class:`memoryview` in the Python layer.
+
+
 .. c:function:: PyObject *PyMemoryView_FromObject(PyObject *obj)
 
    Create a memoryview object from an object that provides the buffer interface.