We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.environ
1 parent 12011dd commit 4e7c0cbCopy full SHA for 4e7c0cb
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