gh-135862: add C contiguous one-dimensional buffer requirement to asyncio.StreamWriter docs (#137910)
This commit is contained in:
@@ -321,6 +321,9 @@ StreamWriter
|
|||||||
stream.write(data)
|
stream.write(data)
|
||||||
await stream.drain()
|
await stream.drain()
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like object <bytes-like object>`.
|
||||||
|
|
||||||
.. method:: writelines(data)
|
.. method:: writelines(data)
|
||||||
|
|
||||||
The method writes a list (or any iterable) of bytes to the underlying socket
|
The method writes a list (or any iterable) of bytes to the underlying socket
|
||||||
|
|||||||
Reference in New Issue
Block a user