[New-bugs-announce] [issue12196] add pipe2() to the os module

Charles-François Natali report at bugs.python.org
Fri May 27 16:11:01 CEST 2011

New submission from Charles-François Natali <neologix at free.fr>:

pipe2() makes it possible to create a pipe O_CLOEXEC or O_NONBLOCK atomically, which can be quite useful, especially in multi-threaded code. It would be nice to expose it in the os module.
Patch attached.

components: Library (Lib)
files: posix_pipe2.diff
keywords: needs review, patch
messages: 137054
nosy: charles-francois.natali, haypo, pitrou
priority: low
severity: normal
stage: patch review
status: open
title: add pipe2() to the os module
type: feature request
versions: Python 3.4
Added file: http://bugs.python.org/file22147/posix_pipe2.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list