]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 17:34:19 +0000 (10:34 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Wed, 11 Sep 2019 17:34:19 +0000 (19:34 +0200)
https://bugs.python.org/issue37698
(cherry picked from commit 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
Doc/c-api/buffer.rst

index 19ec7aaadfa746e312d6f6f5cb455895d458f607..b639ba6ff7877b9debd3e80499a40cba8909ee48 100644 (file)
@@ -491,8 +491,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*.