There was an error while loading. Please reload this page.
1 parent 5397c79 commit a003af1Copy full SHA for a003af1
1 file changed
Doc/whatsnew/3.3.rst
@@ -106,6 +106,11 @@ connection when done::
106
os
107
--
108
109
+* The :mod:`os` module has a new :func:`~os.pipe2` function that makes it
110
+ possible to create a pipe with :data:`~os.O_CLOEXEC` or
111
+ :data:`~os.O_NONBLOCK` flags set atomically. This is especially useful to
112
+ avoid race conditions in multi-threaded programs.
113
+
114
* The :mod:`os` module has a new :func:`~os.sendfile` function which provides
115
an efficent "zero-copy" way for copying data from one file (or socket)
116
descriptor to another. The phrase "zero-copy" refers to the fact that all of
0 commit comments