Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
add "in the same process"
  • Loading branch information
vstinner committed Jun 5, 2024
commit e6665b6c6f76dfde939cfb04bf05bfd1beb04411
3 changes: 2 additions & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ process and user.
except for changes made by modifying :data:`os.environ` directly.

The :meth:`!os.environ.refresh()` method updates
:data:`os.environ` with changes to the environment made outside Python.
:data:`os.environ` with changes to the environment made in the same process
outside Python.
Comment thread
vstinner marked this conversation as resolved.
Outdated

This mapping may be used to modify the environment as well as query the
environment. :func:`putenv` will be called automatically when the mapping
Expand Down
3 changes: 2 additions & 1 deletion Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ os
--

* Added the :meth:`os.environ.refresh() <os.environ>` method to update
:data:`os.environ` with environment changes made outside Python.
:data:`os.environ` with environment changes made in the same process outside
Python.
(Contributed by Victor Stinner in :gh:`120057`.)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Added the :meth:`os.environ.refresh() <os.environ>` method to update
:data:`os.environ` with environment changes made outside Python. Patch by
Victor Stinner.
:data:`os.environ` with environment changes made in the same process outside
Python. Patch by Victor Stinner.