mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
fix some typos in Doc/c-api/memoryview.rst
This commit is contained in:
parent
f27be5c60b
commit
5a53f368e6
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ any other object.
|
|||
|
||||
Create a memoryview object from an object that provides the buffer interface.
|
||||
If *obj* supports writable buffer exports, the memoryview object will be
|
||||
readable and writable, other it will be read-only.
|
||||
readable and writable, otherwise it will be read-only.
|
||||
|
||||
|
||||
.. c:function:: PyObject *PyMemoryView_FromBuffer(Py_buffer *view)
|
||||
|
|
@ -33,7 +33,7 @@ any other object.
|
|||
Create a memoryview object to a contiguous chunk of memory (in either
|
||||
'C' or 'F'ortran *order*) from an object that defines the buffer
|
||||
interface. If memory is contiguous, the memoryview object points to the
|
||||
original memory. Otherwise copy is made and the memoryview points to a
|
||||
original memory. Otherwise, a copy is made and the memoryview points to a
|
||||
new bytes object.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue