diff options
author | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2021-12-22 13:07:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 13:07:46 (GMT) |
commit | 31ff96712e8f89ac1056c2da880b44650002219f (patch) | |
tree | f6cbc0c62bb78c3251a2ff7364fba22b6b36007a /Misc/NEWS.d | |
parent | fc54e722a2e66971f1a8e16cff24c844bf9c5ac4 (diff) | |
download | cpython-31ff96712e8f89ac1056c2da880b44650002219f.zip cpython-31ff96712e8f89ac1056c2da880b44650002219f.tar.gz cpython-31ff96712e8f89ac1056c2da880b44650002219f.tar.bz2 |
bpo-46140: take more Py_buffer arguments as const * (GH-30217)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2021-12-21-22-56-36.bpo-46140.dvXkYK.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-12-21-22-56-36.bpo-46140.dvXkYK.rst b/Misc/NEWS.d/next/C API/2021-12-21-22-56-36.bpo-46140.dvXkYK.rst new file mode 100644 index 0000000..26b9859 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2021-12-21-22-56-36.bpo-46140.dvXkYK.rst @@ -0,0 +1 @@ +:c:func:`PyBuffer_GetPointer`, :c:func:`PyBuffer_FromContiguous`, :c:func:`PyBuffer_ToContiguous` and :c:func:`PyMemoryView_FromBuffer` now take buffer info by ``const Py_buffer *`` instead of ``Py_buffer *``, as they do not need mutability. :c:func:`PyBuffer_FromContiguous` also now takes the source buffer as ``const void *``, and similarly :c:func:`PyBuffer_GetPointer` takes the strides as ``const Py_ssize_t *``.
\ No newline at end of file |