From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 5 Nov 2025 16:51:31 +0000 (+0100) Subject: [3.13] gh-141004: Document `PyMemoryView_Type` (GH-141034) (GH-141055) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ac9048ce94b829ce9c7232c374880f5c1feea34;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-141004: Document `PyMemoryView_Type` (GH-141034) (GH-141055) gh-141004: Document `PyMemoryView_Type` (GH-141034) (cherry picked from commit 3f6aca1be49f96c5c5f52040b8e78c73c79c0a86) Co-authored-by: Peter Bierma --- diff --git a/Doc/c-api/memoryview.rst b/Doc/c-api/memoryview.rst index f60380328052..e4ac8b576734 100644 --- a/Doc/c-api/memoryview.rst +++ b/Doc/c-api/memoryview.rst @@ -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.