]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reference `memoryview.tolist` as a method (#145412)
authorVictorien <65306057+Viicos@users.noreply.github.com>
Tue, 3 Mar 2026 16:05:14 +0000 (16:05 +0000)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2026 16:05:14 +0000 (16:05 +0000)
Doc/library/stdtypes.rst

index 4451d485884987157882b71c496db2d082b6f8bf..76a4367dd2dcd57bc4927c7027196fa45d8ff358 100644 (file)
@@ -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.