8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation. 8000
There was an error while loading. Please reload this page.
os.environ
1 parent 3b1201d commit 32a738eCopy full SHA for 32a738e
Doc/library/os.rst
@@ -201,6 +201,11 @@ process and user.
201
``'surrogateescape'`` error handler. Use :data:`environb` if you would like
202
to use a different encoding.
203
204
+ On Windows, the keys are converted to uppercase. This also applies when
205
+ getting, setting, or deleting an item. For example,
206
+ ``environ['monty'] = 'python'`` maps the key ``'MONTY'`` to the value
207
+ ``'python'``.
208
+
209
.. note::
210
211
Calling :func:`putenv` directly does not change :data:`os.environ`, so it's better
0 commit comments