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

This commit is contained in:
Kumar Aditya 2025-08-18 18:36:43 +05:30 committed by GitHub
parent 7dfa048bbb
commit 1c3950abc1
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