From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 8 Nov 2025 17:36:00 +0000 (+0100) Subject: [3.14] gh-141004: Document `PyBUF_WRITEABLE` (GH-141255) (GH-141261) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba0b8214ea4b6ff640c6fd383de158364421634d;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-141004: Document `PyBUF_WRITEABLE` (GH-141255) (GH-141261) gh-141004: Document `PyBUF_WRITEABLE` (GH-141255) (cherry picked from commit 5e5fc0404ed983bb37a19793a5c802d0d9852e5d) Co-authored-by: Peter Bierma --- diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index d3081894eada..6bb72a2312be 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -261,6 +261,10 @@ readonly, format MUST be consistent for all consumers. For example, :c:expr:`PyBUF_SIMPLE | PyBUF_WRITABLE` can be used to request a simple writable buffer. + .. c:macro:: PyBUF_WRITEABLE + + This is a :term:`soft deprecated` alias to :c:macro:`PyBUF_WRITABLE`. + .. c:macro:: PyBUF_FORMAT Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST