[3.13] gh-135862: add C contiguous one-dimensional buffer requirement to asyncio.StreamWriter docs (GH-137910) (#137913)

gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910)
(cherry picked from commit 1c3950abc1)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
Miss Islington (bot) 2025-08-18 15:13:19 +02:00 committed by GitHub
parent 135e8343a4
commit 1a10c47fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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