mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"
document.
This commit is contained in:
parent
5397c797f4
commit
a003af1ce9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue