STINNER Victor added the comment: > Would it be acceptable to implement a pipe2 shim for those platforms?
If I understand correctly, you propose to add an option inheritable parameter to os.pipe(): def os.pipe(inheritable=False): ... The PEP 446 was written to fix race conditions. os.pipe(inheritable=True) would create a race condition if another thread calls fork(). What is your use case? Please elaborate. The subprocess module makes "pass_fds" file descriptors inheritables in a safe way. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22722> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com