summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.3.rst
diff options
context:
space:
mode:
authorGiampaolo Rodolà <g.rodola@gmail.com>2011-02-25 14:39:16 (GMT)
committerGiampaolo Rodolà <g.rodola@gmail.com>2011-02-25 14:39:16 (GMT)
commitc9c2c8b034ee9fb61ee8487545e9711ac2bbcf61 (patch)
tree78e0a29f8bb5feca92cd5fe292295f0d4083de7e /Doc/whatsnew/3.3.rst
parent59db1f3df635463d0cb3efa5ef3283e72ef4ed60 (diff)
downloadcpython-c9c2c8b034ee9fb61ee8487545e9711ac2bbcf61.zip
cpython-c9c2c8b034ee9fb61ee8487545e9711ac2bbcf61.tar.gz
cpython-c9c2c8b034ee9fb61ee8487545e9711ac2bbcf61.tar.bz2
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r--Doc/whatsnew/3.3.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 3e6da79..78d66fe 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -68,6 +68,19 @@ New, Improved, and Deprecated Modules
* Stub
+os
+--
+
+The :mod:`os` module has a new :func:`~os.sendfile` function which provides an
+efficent "zero-copy" way for copying data from one file (or socket) descriptor
+to another.
+The phrase "zero-copy" refers to the fact that all of the copying of data
+between the two descriptors is done entirely by the kernel, with no copying of
+data into userspace buffers.
+:func:`~os.sendfile` can be used to efficiently copy data from a file on disk to
+a network socket, e.g. for downloading a file.
+
+(Patch submitted by Ross Lagerwall and Giampaolo Rodolà in :issue:`10882`.)
Optimizations
=============