[issue18524] BufferedReader.read1() documentation/implementation difference

Antoine Pitrou report at bugs.python.org
Wed Jul 24 23:28:38 CEST 2013


Antoine Pitrou added the comment:

Le mercredi 24 juillet 2013 à 18:24 +0000, Nikolaus Rath a écrit :
> There should be no problem reading 20 bytes with a single call to
> BytesIO.read(), yet the buffered reader returns only 10 bytes.

Er. Your bug report seems to imply that read1(n) can return *more* than
n bytes, which would be a bug.
That it may return less than n bytes is correct, though.

----------

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


More information about the Python-bugs-list mailing list