summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-06-01 18:30:52 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-06-01 18:30:52 (GMT)
commita003af1ce9d008e03371b3d16c4d6361961c2e78 (patch)
tree3bffe158debcb9740385c00ba3943d1bf26bff1a /Doc/whatsnew
parent5397c797f4ca1d958430edff1ff04a91a813a5ec (diff)
downloadcpython-a003af1ce9d008e03371b3d16c4d6361961c2e78.zip
cpython-a003af1ce9d008e03371b3d16c4d6361961c2e78.tar.gz
cpython-a003af1ce9d008e03371b3d16c4d6361961c2e78.tar.bz2
Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"
document.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 2b9bd11..a2d3af1 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -106,6 +106,11 @@ connection when done::
os
--
+* The :mod:`os` module has a new :func:`~os.pipe2` function that makes it
+ possible to create a pipe with :data:`~os.O_CLOEXEC` or
+ :data:`~os.O_NONBLOCK` flags set atomically. This is especially useful to
+ avoid race conditions in multi-threaded programs.
+
* 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