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

Victor Stinner victor.stinner at gmail.com
Sat Jul 27 15:44:20 CEST 2013


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:

Should I rename os.set_cloexec(fd, cloexec) to os.set_inheritable(fd, inheritable), and os.get_cloexec(fd) to os.get_inheritable(fd)?

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.

Victor



More information about the Python-Dev mailing list