[Python-checkins] peps: PEP 433: add command line option and environment variable

victor.stinner python-checkins at python.org
Fri Jan 25 23:09:13 CET 2013


http://hg.python.org/peps/rev/2eba0c902a56
changeset: 4691:2eba0c902a56
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jan 25 23:07:44 2013 +0100
summary:
 PEP 433: add command line option and environment variable
files:
 pep-0433.txt | 16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pep-0433.txt b/pep-0433.txt
--- a/pep-0433.txt
+++ b/pep-0433.txt
@@ -329,20 +329,20 @@
 library. This alternative is based on the `Proposal`_ and adds extra
 changes.
 
-Add new functions:
+New functions, command line argument and environment variable:
 
 * ``sys.getdefaultcloexec() -> bool``: get the default value of the
- close-on-exec flag for new file descriptor
- * ``sys.setdefaultcloexec(cloexec: bool)``: enable or disable
- close-on-exec flag, the state of the flag can be overriden in each
- function creating a file descriptor
+ *cloexec* parameter
+ * ``sys.setdefaultcloexec()``, ``-e`` command line option, ``PYTHONCLOEXEC``
+ environment variable (if set): set the default value of the *cloexec*
+ parameter to ``True``
 
 The major change is that the default value of the ``cloexec`` parameter
 is ``sys.getdefaultcloexec()``, instead of ``False``.
 
-When ``sys.setdefaultcloexec(True)`` is called to set close-on-exec by
-default, we have the same drawbacks as the
-`Enable file descriptor inheritance by default`_ alternative.
+When ``sys.setdefaultcloexec()`` is called to set close-on-exec by default, we
+have the same drawbacks as the `Enable file descriptor inheritance by default`_
+alternative.
 
 There are additionnal drawbacks of having two behaviours depending on
 ``sys.getdefaultcloexec()`` value:
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /