[Python-checkins] bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
Miss Islington (bot)
webhook-mailer at python.org
Wed Sep 11 13:25:58 EDT 2019
https://github.com/python/cpython/commit/15f5a7527b87e11fcf23069c147fd4cb7d42cfb0
commit: 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0
branch: master
author: Hai Shi <shihai1992 at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-09-11T10:25:55-07:00
summary:
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
https://bugs.python.org/issue37698
files:
M Doc/c-api/buffer.rst
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
index fb9d47b16c9f..e660716856b6 100644
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -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*.
More information about the Python-checkins
mailing list