Re: [Python-Dev] PEP 433: second try

2013-01-30 Thread Hrvoje Niksic
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

Re: [Python-Dev] PEP 433: second try

2013-01-30 Thread Victor Stinner
> 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

Re: [Python-Dev] PEP 433: second try

2013-01-30 Thread Victor Stinner
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

Re: [Python-Dev] PEP 433: second try

2013-01-29 Thread Larry Hastings
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