-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
When the environment is modified outside Python, os.environ is not updated. I propose adding a new os.environ.refresh() method to manually update os.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
agriyakhetarpal, Eclips4 and mattwang44noamcohen97 and sigma67EDM115
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement