We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0158890 commit 3568f2aCopy full SHA for 3568f2a
Doc/library/asyncio-stream.rst
@@ -316,13 +316,14 @@ StreamWriter
316
If that fails, the data is queued in an internal write buffer until it can be
317
sent.
318
319
+ The *data* buffer should be a bytes, bytearray, or C-contiguous one-dimensional
320
+ memoryview object.
321
+
322
The method should be used along with the ``drain()`` method::
323
324
stream.write(data)
325
await stream.drain()
326
- .. note::
- The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like object <bytes-like object>`.
327
328
.. method:: writelines(data)
329
0 commit comments