Commit 15f5a752 authored by Hai Shi's avatar Hai Shi Committed by Miss Islington (bot)

bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)



https://bugs.python.org/issue37698
parent c9bc49c5
......@@ -493,8 +493,8 @@ Buffer-related functions
.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
Copy *len* bytes from *src* to its contiguous representation in *buf*.
*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering).
``0`` is returned on success, ``-1`` on error.
*order* can be ``'C'`` or ``'F'`` or ``'A'`` (for C-style or Fortran-style
ordering or either one). ``0`` is returned on success, ``-1`` on error.
This function fails if *len* != *src->len*.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment