]> granicus.if.org Git - python/commitdiff
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 13 Mar 2011 18:31:11 +0000 (19:31 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 13 Mar 2011 18:31:11 +0000 (19:31 +0100)
Doc/c-api/buffer.rst

index e6eff8462661c62eba4973da59f33f4c3403d86c..094f7f2239fa41dd2f39aab5c02191e9a3d06698 100644 (file)
@@ -306,20 +306,6 @@ Buffer-related functions
    :cdata:`~Py_buffer.format`.
 
 
-.. cfunction:: int PyObject_CopyToObject(PyObject *obj, void *buf, Py_ssize_t len, char fortran)
-
-   Copy *len* bytes of data pointed to by the contiguous chunk of memory
-   pointed to by *buf* into the buffer exported by obj.  The buffer must of
-   course be writable.  Return 0 on success and return -1 and raise an error
-   on failure.  If the object does not have a writable buffer, then an error
-   is raised.  If *fortran* is ``'F'``, then if the object is
-   multi-dimensional, then the data will be copied into the array in
-   Fortran-style (first dimension varies the fastest).  If *fortran* is
-   ``'C'``, then the data will be copied into the array in C-style (last
-   dimension varies the fastest).  If *fortran* is ``'A'``, then it does not
-   matter and the copy will be made in whatever way is more efficient.
-
-
 .. cfunction:: int PyBuffer_IsContiguous(Py_buffer *view, char fortran)
 
    Return 1 if the memory defined by the *view* is C-style (*fortran* is