mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`. <!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613) --> https://bugs.python.org/issue34613 <!-- /issue-number -->
This commit is contained in:
parent
b7d613fc56
commit
b4ec36200a
1 changed files with 3 additions and 1 deletions
|
@ -146,10 +146,12 @@ and work with streams:
|
||||||
StreamReader
|
StreamReader
|
||||||
============
|
============
|
||||||
|
|
||||||
.. class:: StreamReader(limit=None, loop=None)
|
.. class:: StreamReader(limit=_DEFAULT_LIMIT, loop=None)
|
||||||
|
|
||||||
This class is :ref:`not thread safe <asyncio-multithreading>`.
|
This class is :ref:`not thread safe <asyncio-multithreading>`.
|
||||||
|
|
||||||
|
The *limit* argument's default value is set to _DEFAULT_LIMIT which is 2**16 (64 KiB)
|
||||||
|
|
||||||
.. method:: exception()
|
.. method:: exception()
|
||||||
|
|
||||||
Get the exception.
|
Get the exception.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue