Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
When the environment is modified outside Python,os.environ is not updated. I propose adding a newos.environ.refresh() method to manually updateos.environ.
Discussion:https://discuss.python.org/t/method-to-refresh-os-environ/54774
Linked PRs
- gh-120057: Add os.environ.refresh() method #120059
- gh-120057: Add os.get_user_default_environ() function #120494
- Revert "gh-120057: Add os.environ.refresh() method (#120059)" #120789
- Revert "gh-120057: Add os.environ.refresh() method (#120059)" #120790
- gh-120057: Rename os.environ.refresh() to invalidate_cache() #120808
- gh-120057: Add os.reload_environ() function #126268
- gh-120057: add
os.reload_environto__all__#140763 - [3.14] gh-120057: add
os.reload_environto__all__(GH-140763) #140773