[New-bugs-announce] [issue22279] read() vs read1() in asyncio.StreamReader documentation

Jack O'Connor report at bugs.python.org
Tue Aug 26 20:36:39 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22279>
_______________________________________


More information about the New-bugs-announce mailing list