From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 23 Aug 2025 16:27:51 +0000 (+0200) Subject: [3.14] gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio... X-Git-Tag: v3.14.0rc3~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=271823fdafc29c00189bdb253199db3083dd3933;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910) (#137912) gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910) (cherry picked from commit 1c3950abc1d403bddce5212c08d6c40e78486e9d) Co-authored-by: Kumar Aditya --- diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 90c90862ca1e..e1568ae330b7 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -321,6 +321,9 @@ StreamWriter stream.write(data) await stream.drain() + .. note:: + The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like object `. + .. method:: writelines(data) The method writes a list (or any iterable) of bytes to the underlying socket