https://github.com/python/cpython/commit/271823fdafc29c00189bdb253199db3083dd3933
commit: 271823fdafc29c00189bdb253199db3083dd3933
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-08-23T19:27:51+03:00
summary:

[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 <[email protected]>

files:
M Doc/library/asyncio-stream.rst

diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
index 90c90862ca1ed3..e1568ae330b70f 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 <bytes-like object>`.
+
    .. method:: writelines(data)
 
       The method writes a list (or any iterable) of bytes to the underlying 
socket

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to