[issue22279] read() vs read1() in asyncio.StreamReader documentation

STINNER Victor report at bugs.python.org
Wed Aug 27 00:09:38 CEST 2014


STINNER Victor added the comment:

Guido, what do you mean by changing this? Rename methods? What about the
backward compatibility? Is it possible that an application written with the
"read1 behaviour" blocks if read(n) waits for exactly n bytes?

I like the idea of having the same names in io and asyncio modules (even
the name of the two modules are close).

If we want an API close to the io module, do we need 3 layers? FileIO,
BufferedReader and TextIOWrapper.

----------

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


More information about the Python-bugs-list mailing list