Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ process and user.
cause memory leaks. Refer to the system documentation for
:c:func:`!putenv`.

.. warning::
Setting or unsetting environment variables from one thread while
another thread reads or writes them is not guaranteed to be
thread-safe and can crash the process on some platforms.

You can delete items in this mapping to unset environment variables.
:func:`unsetenv` will be called automatically when an item is deleted from
:data:`os.environ`, and when one of the :meth:`~dict.pop` or
Expand Down
Loading