Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15f5a75

Browse files
shihai1991miss-islington
authored andcommitted
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
https://bugs.python.org/issue37698
1 parent c9bc49c commit 15f5a75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/c-api/buffer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ Buffer-related functions
493493
.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
494494
495495
Copy *len* bytes from *src* to its contiguous representation in *buf*.
496-
*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering).
497-
``0`` is returned on success, ``-1`` on error.
496+
*order* can be ``'C'`` or ``'F'`` or ``'A'`` (for C-style or Fortran-style
497+
ordering or either one). ``0`` is returned on success, ``-1`` on error.
498498
499499
This function fails if *len* != *src->len*.
500500

0 commit comments

Comments
 (0)