mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
https://bugs.python.org/issue37698
This commit is contained in:
parent
c9bc49c5f6
commit
15f5a7527b
1 changed files with 2 additions and 2 deletions
|
@ -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*.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue