[Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets (original) (raw)

Victor Stinner victor.stinner at gmail.com
Thu Jul 4 14:04:25 CEST 2013


2013/7/4 Ronald Oussoren <ronaldoussoren at mac.com>:

The PEP 433 proposes adding an "e" mode to open in alternatives. I didn't keep this idea because the fopen() function of the GNU libc library has no mode for the ONONBLOCK flag. IMO it is not interesting to mention it in the PEP 466. I don't understand your reasoning, that is what has GNU libc to do with adding "e" mode to io.open?

The GNU libc supports fopen(filename, "re") to set O_CLOEXEC flag on the file. I pick the idea into the PEP 433, in alternatives: open(filename, "re") sets O_CLOEXEC flag on the file.

For the PEP 466, I only proposed the original API of the PEP 433: open(filename, "r", cloexec=True).

Victor



More information about the Python-Dev mailing list