2013/1/30 Larry Hastings <la...@hastings.org>: > 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 _______________________________________________ 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