[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
- Previous message: [Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)
- Next message: [Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 (O_NONBLOCK), it should be discussed in a new PEP (it's no more related to O_CLOEXEC / HANDLE_INHERIT_FLAG)
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
- Previous message: [Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)
- Next message: [Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]