[Python-checkins] cpython (merge 3.2 -> default): Remove documentation to non-existent function PyObject_CopyToObject (fixes
antoine.pitrou
python-checkins at python.org
Sun Mar 13 19:32:44 CET 2011
http://hg.python.org/cpython/rev/955547e57cff
changeset: 68425:955547e57cff
parent: 68422:f197dac00f43
parent: 68424:eb8c2f43b251
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Mar 13 19:32:21 2011 +0100
summary:
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
files:
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -304,20 +304,6 @@
:c:data:`~Py_buffer.format`.
-.. c:function:: 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.
-
-
.. c:function:: int PyBuffer_IsContiguous(Py_buffer *view, char fortran)
Return 1 if the memory defined by the *view* is C-style (*fortran* is
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list