On 01/30/2013 01:00 PM, Victor Stinner wrote:
Disable inheritance by default
(...)
* It violates the principle of least surprise. Developers using the
os module may expect that Python respects the POSIX standard and so
that close-on-exec flag is not set by default.
Oh, I just saw that Perl
> Disable inheritance by default
> (...)
> * It violates the principle of least surprise. Developers using the
> os module may expect that Python respects the POSIX standard and so
> that close-on-exec flag is not set by default.
Oh, I just saw that Perl is "violating POSIX" since Perl 1:
clo
2013/1/30 Larry Hastings :
> Here is a new version of my PEP 433.
> [...]
> * ``os.get_cloexec(fd)``
> * ``os.set_cloexec(fd, cloexec=True)``
> * ``sys.getdefaultcloexec()``
> * ``sys.setdefaultcloexec(cloexec=True)``
>
> Passing no judgment on the PEP otherwise, just a single observation: the
On 01/29/2013 09:00 AM, Victor Stinner wrote:
Hi,
Here is a new version of my PEP 433.
[...]
* ``os.get_cloexec(fd)``
* ``os.set_cloexec(fd, cloexec=True)``
* ``sys.getdefaultcloexec()``
* ``sys.setdefaultcloexec(cloexec=True)``
Passing no judgment on the PEP otherwise, just a single o
Hi,
Here is a new version of my PEP 433. The default value of the cloexec
parameter is now configurable (cmdline option, env var,
sys.setdefaultcloexec), it can be disabled using
sys.setdefaultcloexec(False).
HTML version:
http://python.org/dev/peps/pep-0433/
Implementation:
http://bugs.python.o