[Python-checkins] cpython: Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"

charles-francois.natali python-checkins at python.org
Wed Jun 1 20:31:19 CEST 2011


http://hg.python.org/cpython/rev/4124d1f75b93
changeset: 70593:4124d1f75b93
user: Charles-François Natali <neologix at free.fr>
date: Wed Jun 01 20:30:52 2011 +0200
summary:
 Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"
document.
files:
 Doc/whatsnew/3.3.rst | 5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -106,6 +106,11 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /