New submission from Jack O'Connor:

BufferedIOBase and related classes have a read(n) and read1(n). The first will 
wait until n bytes are available (or EOF), while the second will return as soon 
as any bytes are available. In asyncio.StreamReader, there is no read1 method, 
but the read method seems to behave like BufferedIOBase.read1, and there is a 
readexactly method that behaves like BufferedIOBase.read.

Is there a reason for this naming change? Either way, could the documentation 
for asyncio.StreamReader.read be clarified?

----------
components: asyncio
messages: 225924
nosy: gvanrossum, haypo, oconnor663, yselivanov
priority: normal
severity: normal
status: open
title: read() vs read1() in asyncio.StreamReader documentation
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22279>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to