8000 Address review: complete doc · python/cpython@ad10366 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad10366

Browse files
committed
Address review: complete doc
1 parent 0a00444 commit ad10366

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Doc/library/os.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,13 @@ process and user.
245245
.. function:: reload_environ()
246246

247247
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.
248+
current process environment made by :func:`os.putenv`, by
249+
: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.
250255

251256
.. versionadded:: 3.14
252257

0 commit comments

Comments
 (0)
0