https://github.com/python/cpython/commit/3f6aca1be49f96c5c5f52040b8e78c73c79c0a86
commit: 3f6aca1be49f96c5c5f52040b8e78c73c79c0a86
branch: main
author: Peter Bierma <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2025-11-05T11:45:13-05:00
summary:
gh-141004: Document `PyMemoryView_Type` (GH-141034)
files:
M Doc/c-api/memoryview.rst
diff --git a/Doc/c-api/memoryview.rst b/Doc/c-api/memoryview.rst
index f6038032805259..e4ac8b57673407 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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]