[New-bugs-announce] [issue18865] multiprocessing: remove util.pipe()?
STINNER Victor
report at bugs.python.org
Wed Aug 28 09:36:45 CEST 2013
New submission from STINNER Victor:
In the implementation of the PEP 446, issue #18571, I replaced multiprocessing.util.pipe() with os.pipe() in the multiprocessing module.
Can we remove the multiprocessing.util.pipe() function? It is not public nor documented.
Charles-François Natali added the comment (in issue #18571):
14.1 --- a/Lib/multiprocessing/util.py
14.2 +++ b/Lib/multiprocessing/util.py
14.13 #
14.14 # Return pipe with CLOEXEC set on fds
14.15 #
14.16 +# Deprecated: os.pipe() creates non-inheritable file descriptors
14.17 +# since Python 3.4
14.18 +#
14.19
14.20 def pipe():
14.21 - import _posixsubprocess
14.22 - return _posixsubprocess.cloexec_pipe()
14.23 + return os.pipe()
I guess you could remove util.pipe() altogether: it wasn't part of the public API.
----------
messages: 196354
nosy: haypo, neologix, sbt
priority: normal
severity: normal
status: open
title: multiprocessing: remove util.pipe()?
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18865>
_______________________________________
More information about the New-bugs-announce
mailing list