diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-13 18:31:11 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-13 18:31:11 (GMT) |
commit | 6b19e50e9b395532c43149d15ceffe8218e04b0c (patch) | |
tree | ff3a22e9e8ed21d8a41be129e2a526b721083deb /Doc/c-api | |
parent | 2b73660135794cdcd37966ef82b2c9eddc54911c (diff) | |
download | cpython-6b19e50e9b395532c43149d15ceffe8218e04b0c.zip cpython-6b19e50e9b395532c43149d15ceffe8218e04b0c.tar.gz cpython-6b19e50e9b395532c43149d15ceffe8218e04b0c.tar.bz2 |
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/buffer.rst | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index e6eff84..094f7f2 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -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 |