mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-135862: add C contiguous one-dimensional buffer requirement to asyncio.StreamWriter docs (#137910)
This commit is contained in:
parent
7dfa048bbb
commit
1c3950abc1
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