[Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)
Guido van Rossum
guido at python.org
Sat Jul 27 16:36:19 CEST 2013
On Saturday, July 27, 2013, Victor Stinner wrote:
> 2013/7/27 Guido van Rossum <guido at python.org <javascript:;>>:
> > Do we even need a new PEP, or should we just do it? Or can we adapt
> > Victor's PEP 446?
>
> I can rewrite the PEP 446 to:
>
> * make all file descriptors and handles non-inheritable
> * remove the cloexec parameter
> * remove everything about non-blocking sockets (O_NONBLOCK), it should
> be discussed in a new PEP (it's no more related to O_CLOEXEC /
> HANDLE_INHERIT_FLAG)
Sounds good.
>
> Should I rename os.set_cloexec(fd, cloexec) to os.set_inheritable(fd,
> inheritable), and os.get_cloexec(fd) to os.get_inheritable(fd)?
Yes.
>
> Or do you prefer a simple os.make_inheritable(fd) with no inheritable
> parameter? I prefer an explicit parameter, so it's also possible to
> force again non-inheritable, which also makes sense if the file
> descriptor was not created by Python.
Agreed.
>
> Victor
>
--
--Guido van Rossum (on iPad)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130727/1ba77198/attachment.html>
More information about the Python-Dev
mailing list