summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-18 17:17:23 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-18 17:17:23 (GMT)
commitb745a74c99b9db0daab7289c6a1f0e386cd26644 (patch)
tree3dd5e45a9311372a36ad280e3c1739ab573cdf9e /Doc/library/os.rst
parent04b5684d002de5e3eb4232bb287c6884afb61bf3 (diff)
downloadcpython-b745a74c99b9db0daab7289c6a1f0e386cd26644.zip
cpython-b745a74c99b9db0daab7289c6a1f0e386cd26644.tar.gz
cpython-b745a74c99b9db0daab7289c6a1f0e386cd26644.tar.bz2
Issue #8513: os.get_exec_path() supports b'PATH' key and bytes value.
subprocess.Popen() and os._execvpe() support bytes program name. Add os.supports_bytes_environ flag: True if the native OS type of the environment is bytes (eg. False on Windows).
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 1d4b1e1..fbc7edb 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -142,7 +142,8 @@ process and user.
synchronized (modify :data:`environb` updates :data:`environ`, and vice
versa).
- Availability: Unix.
+ :data:`environb` is only available if :data:`supports_bytes_environ` is
+ True.
.. versionadded:: 3.2
@@ -457,6 +458,12 @@ process and user.
Availability: Unix, Windows.
+.. data:: supports_bytes_environ
+
+ True if the native OS type of the environment is bytes (eg. False on
+ Windows).
+
+
.. function:: umask(mask)
Set the current numeric umask and return the previous umask.