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

Skip to content

Commit 6b19e50

Browse files
committed
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
1 parent 2b73660 commit 6b19e50

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
@@ -306,20 +306,6 @@ Buffer-related functions
306306
:cdata:`~Py_buffer.format`.
307307

308308

309-
.. cfunction:: int PyObject_CopyToObject(PyObject *obj, void *buf, Py_ssize_t len, char fortran)
310-
311-
Copy *len* bytes of data pointed to by the contiguous chunk of memory
312-
pointed to by *buf* into the buffer exported by obj. The buffer must of
313-
course be writable. Return 0 on success and return -1 and raise an error
314-
on failure. If the object does not have a writable buffer, then an error
315-
is raised. If *fortran* is ``'F'``, then if the object is
316-
multi-dimensional, then the data will be copied into the array in
317-
Fortran-style (first dimension varies the fastest). If *fortran* is
318-
``'C'``, then the data will be copied into the array in C-style (last
319-
dimension varies the fastest). If *fortran* is ``'A'``, then it does not
320-
matter and the copy will be made in whatever way is more efficient.
321-
322-
323309
.. cfunction:: int PyBuffer_IsContiguous(Py_buffer *view, char fortran)
324310

325311
Return 1 if the memory defined by the *view* is C-style (*fortran* is

0 commit comments

Comments
 (0)