summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrian Schubert <brianm.schubert@gmail.com>2024-10-27 10:36:03 (GMT)
committerGitHub <noreply@github.com>2024-10-27 10:36:03 (GMT)
commitdc76a4ad3c46af3fb70361be10b8a791cd126931 (patch)
tree7317ae11300bdcf5da1d4b9c0a075bb96012f05c /Doc
parentdad34531298fc0ea91b9000aafdd2ea2fce5e54a (diff)
downloadcpython-dc76a4ad3c46af3fb70361be10b8a791cd126931.zip
cpython-dc76a4ad3c46af3fb70361be10b8a791cd126931.tar.gz
cpython-dc76a4ad3c46af3fb70361be10b8a791cd126931.tar.bz2
gh-126012: Add `__class_getitem__` to `memoryview` (#126013)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst3
-rw-r--r--Doc/whatsnew/3.14.rst4
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a6e2e3b..704637d 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3889,6 +3889,9 @@ copying.
.. versionchanged:: 3.5
memoryviews can now be indexed with tuple of integers.
+ .. versionchanged:: next
+ memoryview is now a :term:`generic type`.
+
:class:`memoryview` has several methods:
.. method:: __eq__(exporter)
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst
index 1ccfa32..a6f595c 100644
--- a/Doc/whatsnew/3.14.rst
+++ b/Doc/whatsnew/3.14.rst
@@ -194,6 +194,10 @@ Other language changes
:mod:`copyable <copy>`.
(Contributed by Serhiy Storchaka in :gh:`125767`.)
+* The :class:`memoryview` type now supports subscription,
+ making it a :term:`generic type`.
+ (Contributed by Brian Schubert in :gh:`126012`.)
+
New modules
===========