This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncio.StreamReader initialization documentation incorrectly declare limit as None
Type: enhancement Stage: resolved
Components: asyncio, Documentation Versions: Python 3.8, Python 3.7, Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, miss-islington, psycojoker, yselivanov
Priority: normal Keywords: patch

Created on 2018-09-09 07:00 by psycojoker, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 9121 merged python-dev, 2018-09-09 07:05
PR 9175 merged miss-islington, 2018-09-11 18:45
PR 9176 merged miss-islington, 2018-09-11 18:45
Messages (4)
msg324873 - (view) Author: Laurent Peuch (psycojoker) * Date: 2018-09-09 07:00
asyncio.StreamReader documentation incorrectly declare its initialization argument "limit" to be "None" by default https://docs.python.org/3/library/asyncio-stream.html#asyncio.StreamReader

In the source code it is set to _DEFAULT_LIMIT https://github.com/python/cpython/blob/0afada163c7ef25c3a9d46ed445481fb69f2ecaf/Lib/asyncio/streams.py#L353 

_DEFAULT_LIMIT is set to "2 ** 16 # 64 KiB" https://github.com/python/cpython/blob/0afada163c7ef25c3a9d46ed445481fb69f2ecaf/Lib/asyncio/streams.py#L19

This information is especially needed when you get the exception "asyncio.streams.LimitOverrunError: Separator is not found, and chunk exceed the limit" and want to increase the limit, but you don't have the initial value and you have to look at the source code to get it.

PS: this is my first ticket, I don't know if I should have open one for such a minor detail in the documentation
msg325048 - (view) Author: miss-islington (miss-islington) Date: 2018-09-11 18:45
New changeset b4ec36200a959da70eba94c19826446a8efdffdd by Miss Islington (bot) (Bram) in branch 'master':
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
https://github.com/python/cpython/commit/b4ec36200a959da70eba94c19826446a8efdffdd
msg325050 - (view) Author: miss-islington (miss-islington) Date: 2018-09-11 18:57
New changeset cb51dd7cac6a6e2a7ba67fa4cd328a68f630095b by Miss Islington (bot) in branch '3.6':
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
https://github.com/python/cpython/commit/cb51dd7cac6a6e2a7ba67fa4cd328a68f630095b
msg325052 - (view) Author: miss-islington (miss-islington) Date: 2018-09-11 18:59
New changeset e02ca4270ef258162215e345c23025bec27f9eb0 by Miss Islington (bot) in branch '3.7':
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
https://github.com/python/cpython/commit/e02ca4270ef258162215e345c23025bec27f9eb0
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78794
2019-05-25 22:25:08asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-09-11 18:59:33miss-islingtonsetmessages: + msg325052
2018-09-11 18:57:51miss-islingtonsetmessages: + msg325050
2018-09-11 18:45:58miss-islingtonsetpull_requests: + pull_request8615
2018-09-11 18:45:46miss-islingtonsetpull_requests: + pull_request8614
2018-09-11 18:45:31miss-islingtonsetnosy: + miss-islington
messages: + msg325048
2018-09-09 07:05:55python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8574
2018-09-09 07:00:39psycojokercreate