[Python-checkins] cpython (3.4): Docs: 'os.pwrite()' needs bytes, not strings

jesus.cea python-checkins at python.org
Mon Oct 20 16:20:09 CEST 2014


https://hg.python.org/cpython/rev/de4f3e93e475
changeset:   93146:de4f3e93e475
branch:      3.4
parent:      93144:550de59a4c6d
user:        Jesus Cea <jcea at jcea.es>
date:        Mon Oct 20 16:18:24 2014 +0200
summary:
  Docs: 'os.pwrite()' needs bytes, not strings

files:
  Doc/library/os.rst |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1044,10 +1044,10 @@
    .. versionadded:: 3.3
 
 
-.. function:: pwrite(fd, string, offset)
-
-   Write *string* to a file descriptor, *fd*, from *offset*, leaving the file
-   offset unchanged.
+.. function:: pwrite(fd, str, offset)
+
+   Write *bytestring* to a file descriptor, *fd*, from *offset*,
+   leaving the file offset unchanged.
 
    Availability: Unix.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list