[Python-checkins] r74254 - python/branches/py3k/Doc/library/os.rst
georg.brandl
python-checkins at python.org
Wed Jul 29 18:14:16 CEST 2009
Author: georg.brandl
Date: Wed Jul 29 18:14:16 2009
New Revision: 74254
Log:
#6586: fix return/argument type doc for os.read() and os.write().
Modified:
python/branches/py3k/Doc/library/os.rst
Modified: python/branches/py3k/Doc/library/os.rst
==============================================================================
--- python/branches/py3k/Doc/library/os.rst (original)
+++ python/branches/py3k/Doc/library/os.rst Wed Jul 29 18:14:16 2009
@@ -540,9 +540,9 @@
.. 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 @@
.. 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::
More information about the Python-checkins
mailing list