From: Victorien <65306057+Viicos@users.noreply.github.com> Date: Tue, 3 Mar 2026 16:05:14 +0000 (+0000) Subject: Reference `memoryview.tolist` as a method (#145412) X-Git-Tag: v3.15.0a7~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34df70c83c0055b204fcb10f7e63dbab6d7ecdbb;p=thirdparty%2FPython%2Fcpython.git Reference `memoryview.tolist` as a method (#145412) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 4451d4858849..76a4367dd2dc 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.