2013/7/4 Ronald Oussoren <ronaldousso...@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 O_NONBLOCK 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com