Reference memoryview.tolist as a method (#145412)

This commit is contained in:
Victorien 2026-03-03 16:05:14 +00:00 committed by GitHub
parent bd13cc09fa
commit 34df70c83c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.