Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-120057: Add os.reload_environ() function#126268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 6 commits intopython:mainfromvstinner:reload_environ
Nov 5, 2024
Merged
Changes from1 commit
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
PrevPrevious commit
NextNext commit
Address review: complete doc
  • Loading branch information
@vstinner
vstinner committedNov 1, 2024
commitad1036616d897bd5dd7f517be9f0f5a3fe33e9bb
9 changes: 7 additions & 2 deletionsDoc/library/os.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -245,8 +245,13 @@ process and user.
.. function:: reload_environ()

Update :data:`os.environ` and :data:`os.environb` with changes to the
environment made by :func:`os.putenv`, by :func:`os.unsetenv`, or made
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.

This function is not thread safe. Calling it while the environment is
modified in other thread has undefined behavior. Reading from
:data:`os.environ` or calling :func:`os.getenv` during reloading can return
empty result.

.. versionadded:: 3.14

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp