https://github.com/python/cpython/commit/34df70c83c0055b204fcb10f7e63dbab6d7ecdbb
commit: 34df70c83c0055b204fcb10f7e63dbab6d7ecdbb
branch: main
author: Victorien <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-03-03T16:05:14Z
summary:

Reference `memoryview.tolist` as a method (#145412)

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 4451d485884987..76a4367dd2dcd5 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4536,7 +4536,7 @@ copying.
    types such as :class:`bytes` and :class:`bytearray`, an element is a single
    byte, but other types such as :class:`array.array` may have bigger elements.
 
-   ``len(view)`` is equal to the length of :class:`~memoryview.tolist`, which
+   ``len(view)`` is equal to the length of :meth:`~memoryview.tolist`, which
    is the nested list representation of the view. If ``view.ndim = 1``,
    this is equal to the number of elements in the view.
 

_______________________________________________
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]

Reply via email to