30 Jan
2013
30 Jan
'13
8:45 a.m.
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 "cloexec" parameter to "sys.setdefaultcloexec" should not have a default.
Oh, it's a mistake: sys.setdefaultcloexec() has one parameter and it is mandatory: sys.setdefaultcloexec(cloexec) Victor