]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #17529: Fix os.sendfile() documentation regarding the type of file
authorCharles-Francois Natali <cf.natali@gmail.com>
Wed, 1 May 2013 13:12:20 +0000 (15:12 +0200)
committerCharles-Francois Natali <cf.natali@gmail.com>
Wed, 1 May 2013 13:12:20 +0000 (15:12 +0200)
descriptor supported.

Doc/library/os.rst

index e70c8869cef805a323c5395839bd0ff2920172b2..6d4fb04108354c315c1b7535f2786363dedb2807 100644 (file)
@@ -999,9 +999,8 @@ as internal buffering of data.
    On Mac OS X and FreeBSD, a value of 0 for *nbytes* specifies to send until
    the end of *in* is reached.
 
-   On Solaris, *out* may be the file descriptor of a regular file or the file
-   descriptor of a socket. On all other platforms, *out* must be the file
-   descriptor of an open socket.
+   All platforms support sockets as *out* file descriptor, and some platforms
+   allow other types (e.g. regular file, pipe) as well.
 
    Availability: Unix.