[issue7022] Doc update for io module

Antoine Pitrou report at bugs.python.org
Thu Oct 1 12:58:52 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Actually, I'm not sure what is wrong with the current doc:

read(n=-1)¶
    Read and return up to n bytes from the stream. As a convenience, if
n is unspecified or -1, readall() is called. Otherwise, only one system
call is ever made. An empty bytes object is returned on EOF; None is
returned if the object is set not to block and has no data to read.

(http://docs.python.org/dev/py3k/library/io.html)

----------

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


More information about the Python-bugs-list mailing list