diff options
author | Georg Brandl <georg@python.org> | 2008-09-10 07:14:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-09-10 07:14:18 (GMT) |
commit | 1009d391873b523232440856fe1e728c3c94caab (patch) | |
tree | e37f098d9ba2b15ca3cb3830d6ca6f8ac7162f75 | |
parent | 1b25b9284f111f23167837347f35e393572e770e (diff) | |
download | cpython-1009d391873b523232440856fe1e728c3c94caab.zip cpython-1009d391873b523232440856fe1e728c3c94caab.tar.gz cpython-1009d391873b523232440856fe1e728c3c94caab.tar.bz2 |
Some typos.
-rw-r--r-- | Doc/library/stdtypes.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3eb59d9..a03346a 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2237,17 +2237,17 @@ memoryview Types ================ :class:`memoryview`\s allow Python code to access the internal data of an object -that supports the buffer protocol. Memory can be interpreted as simple bytes or -complex data structures. +that supports the buffer protocol without copying. Memory can be interpreted as +simple bytes or complex data structures. .. class:: memoryview(obj) - Create a :class:`memoryview`\s that references *obj*. *obj* must support the + Create a :class:`memoryview` that references *obj*. *obj* must support the buffer protocol. Builtin objects that support the buffer protocol include :class:`bytes` and :class:`bytearray`. - A :class:`memoryview`\s supports slicing to expose its data. Taking a single - index will return a single byte. Full slicing will result in a subview/ :: + A :class:`memoryview` supports slicing to expose its data. Taking a single + index will return a single byte. Full slicing will result in a subview:: >>> v = memoryview(b'abcefg') >>> v[1] @@ -2262,8 +2262,8 @@ complex data structures. <memory at 0x744f18> >>> bytes(v[4:-1]) - If the object the memoryview is over supports changing it's data, the - memoryview supports slice assignment. :: + If the object the memory view is over supports changing its data, the + memoryview supports slice assignment:: >>> data = bytearray(b'abcefg') >>> v = memoryview(data) @@ -2302,8 +2302,8 @@ complex data structures. .. attribute:: shape - A tuple of integers the length of :attr:`~memoryview.ndim` giving the - shape of the memory as a N-dimensional array. + A tuple of integers the length of :attr:`ndim` giving the shape of the + memory as a N-dimensional array. .. attribute:: ndim |