[Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446) (original) (raw)

Guido van Rossum guido at python.org
Sat Jul 27 16:41:30 CEST 2013


P.S. perhaps more important than a PEP rewrite is a working patch to see how realistic this is. Could you make the alpha 1 release?

On Saturday, July 27, 2013, Guido van Rossum wrote:

On Saturday, July 27, 2013, Victor Stinner wrote: 2013/7/27 Guido van Rossum <guido at python.org>: > 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 (ONONBLOCK), it should be discussed in a new PEP (it's no more related to OCLOEXEC / HANDLEINHERITFLAG) Sounds good.

Should I rename os.setcloexec(fd, cloexec) to os.setinheritable(fd, inheritable), and os.getcloexec(fd) to os.getinheritable(fd)? Yes. Or do you prefer a simple os.makeinheritable(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)

-- --Guido van Rossum (on iPad) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130727/089c46e2/attachment.html>



More information about the Python-Dev mailing list