Message196354
| Author |
vstinner |
| Recipients |
neologix, sbt, vstinner |
| Date |
2013年08月28日.07:36:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1377675405.74.0.563721263875.issue18865@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年08月28日 07:36:45 | vstinner | set | recipients:
+ vstinner, neologix, sbt |
| 2013年08月28日 07:36:45 | vstinner | set | messageid: <1377675405.74.0.563721263875.issue18865@psf.upfronthosting.co.za> |
| 2013年08月28日 07:36:45 | vstinner | link | issue18865 messages |
| 2013年08月28日 07:36:45 | vstinner | create |
|