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.
1 parent 423ae0f commit e8efe61Copy full SHA for e8efe61
1 file changed
Doc/library/os.rst
@@ -214,6 +214,11 @@ process and user.
214
cause memory leaks. Refer to the system documentation for
215
:c:func:`!putenv`.
216
217
+ .. warning::
218
+ Setting or unsetting environment variables from one thread while
219
+ another thread reads or writes them is not guaranteed to be
220
+ thread-safe and can crash the process on some platforms.
221
+
222
You can delete items in this mapping to unset environment variables.
223
:func:`unsetenv` will be called automatically when an item is deleted from
224
:data:`os.environ`, and when one of the :meth:`~dict.pop` or
0 commit comments