#6586: fix return/argument type doc for os.read() and os.write().

This commit is contained in:
Georg Brandl 2009-07-29 16:14:16 +00:00
parent e5e3f915d0
commit b90be69724
1 changed files with 4 additions and 4 deletions

View File

@ -540,9 +540,9 @@ by file descriptors.
.. function:: read(fd, n)
Read at most *n* bytes from file descriptor *fd*. Return a string containing the
Read at most *n* bytes from file descriptor *fd*. Return a bytestring containing the
bytes read. If the end of the file referred to by *fd* has been reached, an
empty string is returned. Availability: Unix, Windows.
empty bytes object is returned. Availability: Unix, Windows.
.. note::
@ -574,8 +574,8 @@ by file descriptors.
.. function:: write(fd, str)
Write the string *str* to file descriptor *fd*. Return the number of bytes
actually written. Availability: Unix, Windows.
Write the bytestring in *str* to file descriptor *fd*. Return the number of
bytes actually written. Availability: Unix, Windows.
.. note::