Message248767
https://docs.python.org/3/library/asyncio-stream.html?highlight=streamreaderprotocol#stream-functions says:
> (If you want to customize the StreamReader and/or StreamReaderProtocol classes, just copy the code – there’s really nothing special here except some convenience.)
StreamReaderProtocol inherits from streams.FlowControlMixin which isn't documented. Applying this advice means, instead of inheriting from StreamReaderProtocol, inheriting from streams.FlowControlMixin -- in order to obtain the _drain_helper method, which StreamWriter.drain must wait for.
At this point inheriting StreamReaderProtocol appears to be the lesser evil.
I suggest to remove this paragraph from the documentation. |
|
Date |
User |
Action |
Args |
2015-08-18 09:48:30 | aymeric.augustin | set | recipients:
+ aymeric.augustin, gvanrossum, vstinner, yselivanov |
2015-08-18 09:48:30 | aymeric.augustin | set | messageid: <1439891310.64.0.826592232629.issue24885@psf.upfronthosting.co.za> |
2015-08-18 09:48:30 | aymeric.augustin | link | issue24885 messages |
2015-08-18 09:48:29 | aymeric.augustin | create | |
|