diff options
author | Georg Brandl <georg@python.org> | 2009-07-29 16:14:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-07-29 16:14:16 (GMT) |
commit | b90be6972496b2eda91b981bc4d83ded68c34445 (patch) | |
tree | b3cc2a4d533e2c59f85d9d26ac1a6bcb22c09715 /Doc/library/os.rst | |
parent | e5e3f915d044ba70e6da8a8e9d15244c2743974f (diff) | |
download | cpython-b90be6972496b2eda91b981bc4d83ded68c34445.zip cpython-b90be6972496b2eda91b981bc4d83ded68c34445.tar.gz cpython-b90be6972496b2eda91b981bc4d83ded68c34445.tar.bz2 |
#6586: fix return/argument type doc for os.read() and os.write().
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r-- | Doc/library/os.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index db96a56..206a15c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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:: |