Skip to content

Commit 1a10c47

Browse files
[3.13] pythongh-135862: add C contiguous one-dimensional buffer requirement to asyncio.StreamWriter docs (pythonGH-137910) (python#137913)
pythongh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (pythonGH-137910) (cherry picked from commit 1c3950a) Co-authored-by: Kumar Aditya <[email protected]>
1 parent 135e834 commit 1a10c47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/asyncio-stream.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ StreamWriter
321321
stream.write(data)
322322
await stream.drain()
323323

324+
.. note::
325+
The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like object <bytes-like object>`.
326+
324327
.. method:: writelines(data)
325328

326329
The method writes a list (or any iterable) of bytes to the underlying socket

0 commit comments

Comments
 (0)