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 47cc6fa commit 3d88b4eCopy full SHA for 3d88b4e
Doc/library/os.rst
@@ -188,6 +188,11 @@ process and user.
188
``'surrogateescape'`` error handler. Use :data:`environb` if you would like
189
to use a different encoding.
190
191
+ On Windows, the keys are converted to uppercase. This also applies when
192
+ getting, setting, or deleting an item. For example,
193
+ ``environ['monty'] = 'python'`` maps the key ``'MONTY'`` to the value
194
+ ``'python'``.
195
+
196
.. note::
197
198
Calling :func:`putenv` directly does not change :data:`os.environ`, so it's better
0 commit comments