mirror of https://github.com/python/cpython
gh-101754: Document that Windows converts keys in `os.environ` to uppercase (GH-101840)
This commit is contained in:
parent
12011dd8ba
commit
4e7c0cbf59
|
@ -201,6 +201,11 @@ process and user.
|
||||||
``'surrogateescape'`` error handler. Use :data:`environb` if you would like
|
``'surrogateescape'`` error handler. Use :data:`environb` if you would like
|
||||||
to use a different encoding.
|
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::
|
.. note::
|
||||||
|
|
||||||
Calling :func:`putenv` directly does not change :data:`os.environ`, so it's better
|
Calling :func:`putenv` directly does not change :data:`os.environ`, so it's better
|
||||||
|
|
Loading…
Reference in New Issue