8000
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 0a00444 commit ad10366Copy full SHA for ad10366
Doc/library/os.rst
@@ -245,8 +245,13 @@ process and user.
245
.. function:: reload_environ()
246
247
Update :data:`os.environ` and :data:`os.environb` with changes to the
248
- environment made by :func:`os.putenv`, by :func:`os.unsetenv`, or made
249
- outside Python in the same process.
+ current process environment made by :func:`os.putenv`, by
+ :func:`os.unsetenv`, or made outside Python in the same process.
250
+
251
+ This function is not thread safe. Calling it while the environment is
252
+ modified in other thread has undefined behavior. Reading from
253
+ :data:`os.environ` or calling :func:`os.getenv` during reloading can return
254
+ empty result.
255
256
.. versionadded:: 3.14
257
0 commit comments