diff --git a/Doc/library/os.rst b/Doc/library/os.rst index e5fc63afdcf57a..1f1e2fd31454c3 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -188,6 +188,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