Skip to content

Commit 965e53a

Browse files
[3.8] bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15999)
https://bugs.python.org/issue37698 (cherry picked from commit 15f5a75) Co-authored-by: Hai Shi <shihai1992@gmail.com>
1 parent d479936 commit 965e53a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/buffer.rst

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

0 commit comments

Comments
 (0)