File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,10 @@ process and user.
102
102
103
103
.. data :: environ
104
104
105
- A :term: `mapping ` object representing the string environment. For example,
106
- ``environ['HOME'] `` is the pathname of your home directory (on some platforms),
107
- and is equivalent to ``getenv("HOME") `` in C.
105
+ A :term: `mapping ` object where keys and values are strings that represent
106
+ the process environment. For example, ``environ['HOME'] `` is the pathname
107
+ of your home directory (on some platforms), and is equivalent to
108
+ ``getenv("HOME") `` in C.
108
109
109
110
This mapping is captured the first time the :mod: `os ` module is imported,
110
111
typically during Python startup as part of processing :file: `site.py `. Changes
@@ -141,10 +142,10 @@ process and user.
141
142
142
143
.. data :: environb
143
144
144
- Bytes version of :data: `environ `: a :term: `mapping ` object representing the
145
- environment as byte strings. :data: ` environ ` and :data: ` environb ` are
146
- synchronized (modify :data: `environb ` updates :data: `environ `, and vice
147
- versa).
145
+ Bytes version of :data: `environ `: a :term: `mapping ` object where both keys
146
+ and values are :class: ` bytes ` objects representing the process environment.
147
+ :data: `environ ` and :data: `environb ` are synchronized (modifying
148
+ :data: ` environb ` updates :data: ` environ `, and vice versa).
148
149
149
150
:data: `environb ` is only available if :data: `supports_bytes_environ ` is
150
151
``True ``.
You can’t perform that action at this time.
0 commit comments