[issue22348] Documentation of asyncio.StreamWriter.drain()

Martin Richard report at bugs.python.org
Fri Sep 12 10:42:32 CEST 2014


Martin Richard added the comment:

Here is an other patch which mentions high and low water limits. I think it's better to talk about it, since it tells extactly what a "full buffer" and "partially drained" means.

On the other hand, StreamWriter wraps the transport but does not expose the set/get_write_buffer_limits() directly, you reach then through stream_writer.transport (which makes sense, StreamWriter is here to help writing, not to do plumbery) - so I did not mention the functions.

----------
Added file: http://bugs.python.org/file36606/asyncio-streams-drain-doc-water-limits.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22348>
_______________________________________


More information about the Python-bugs-list mailing list