From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Sep 2019 17:34:19 +0000 (-0700) Subject: bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998) X-Git-Tag: v3.7.5rc1~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c62da14776d12276ed8f6ecbc74c0db8243b4260;p=thirdparty%2FPython%2Fcpython.git bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998) https://bugs.python.org/issue37698 (cherry picked from commit 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0) Co-authored-by: Hai Shi --- diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index 19ec7aaadfa7..b639ba6ff787 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -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*.