]> granicus.if.org Git - python/commitdiff
Docs: 'os.pwrite()' needs bytes, not strings
authorJesus Cea <jcea@jcea.es>
Mon, 20 Oct 2014 14:18:24 +0000 (16:18 +0200)
committerJesus Cea <jcea@jcea.es>
Mon, 20 Oct 2014 14:18:24 +0000 (16:18 +0200)
Doc/library/os.rst

index 0a59108b2c083b66aed928262217e4d7d18d52a5..f217a36f4de72b84d1b8a2289a9755925c8f1ea2 100644 (file)
@@ -1044,10 +1044,10 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
    .. versionadded:: 3.3
 
 
-.. function:: pwrite(fd, string, offset)
+.. function:: pwrite(fd, str, offset)
 
-   Write *string* to a file descriptor, *fd*, from *offset*, leaving the file
-   offset unchanged.
+   Write *bytestring* to a file descriptor, *fd*, from *offset*,
+   leaving the file offset unchanged.
 
    Availability: Unix.