Skip to content

Commit b4ec362

Browse files
Psycojokermiss-islington
authored andcommitted
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 -->
1 parent b7d613f commit b4ec362

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/asyncio-stream.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,12 @@ and work with streams:
146146
StreamReader
147147
============
148148

149-
.. class:: StreamReader(limit=None, loop=None)
149+
.. class:: StreamReader(limit=_DEFAULT_LIMIT, loop=None)
150150

151151
This class is :ref:`not thread safe <asyncio-multithreading>`.
152152

153+
The *limit* argument's default value is set to _DEFAULT_LIMIT which is 2**16 (64 KiB)
154+
153155
.. method:: exception()
154156

155157
Get the exception.

0 commit comments

Comments
 (0)