gh-101754: Document that Windows converts keys in os.environ to uppercase (GH-101840)

(cherry picked from commit 4e7c0cbf59)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2023-03-03 03:00:06 -08:00 committed by GitHub
parent 3b1201daf6
commit 32a738e5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,6 +201,11 @@ process and user.
``'surrogateescape'`` error handler. Use :data:`environb` if you would like
to use a different encoding.
On Windows, the keys are converted to uppercase. This also applies when
getting, setting, or deleting an item. For example,
``environ['monty'] = 'python'`` maps the key ``'MONTY'`` to the value
``'python'``.
.. note::
Calling :func:`putenv` directly does not change :data:`os.environ`, so it's better