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.

Author psycojoker
Recipients asvetlov, docs@python, psycojoker, yselivanov
Date 2018-09-09.07:00:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536476439.55.0.56676864532.issue34613@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-09-09 07:00:39psycojokersetrecipients: + psycojoker, asvetlov, docs@python, yselivanov
2018-09-09 07:00:39psycojokersetmessageid: <1536476439.55.0.56676864532.issue34613@psf.upfronthosting.co.za>
2018-09-09 07:00:39psycojokerlinkissue34613 messages
2018-09-09 07:00:38psycojokercreate