mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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:
parent
135e8343a4
commit
1a10c47fae
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue