Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d23189

Browse files
committed
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
2 parents f74dee4 + 34db469 commit 0d23189

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Doc/c-api/buffer.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -304,20 +304,6 @@ Buffer-related functions
304304
:c:data:`~Py_buffer.format`.
305305
306306
307-
.. c:function:: int PyObject_CopyToObject(PyObject *obj, void *buf, Py_ssize_t len, char fortran)
308-
309-
Copy *len* bytes of data pointed to by the contiguous chunk of memory
310-
pointed to by *buf* into the buffer exported by obj. The buffer must of
311-
course be writable. Return 0 on success and return -1 and raise an error
312-
on failure. If the object does not have a writable buffer, then an error
313-
is raised. If *fortran* is ``'F'``, then if the object is
314-
multi-dimensional, then the data will be copied into the array in
315-
Fortran-style (first dimension varies the fastest). If *fortran* is
316-
``'C'``, then the data will be copied into the array in C-style (last
317-
dimension varies the fastest). If *fortran* is ``'A'``, then it does not
318-
matter and the copy will be made in whatever way is more efficient.
319-
320-
321307
.. c:function:: int PyBuffer_IsContiguous(Py_buffer *view, char fortran)
322308
323309
Return 1 if the memory defined by the *view* is C-style (*fortran* is

0 commit comments

Comments
 (0)