python_blog
Contents:
12/12/2023 - Modifying a deepcopy of os.environ changes the lookup from the shell, but not the os.environ state
2/14/2024 - Threading guide
python_blog
Welcome to python_blog’s documentation!
View page source
Welcome to python_blog’s documentation!
Contents:
12/12/2023 - Modifying a deepcopy of os.environ changes the lookup from the shell, but not the os.environ state
os.environ is loaded originally and becomes a stale copy of the original os env variables
Odder still, looking up the os.environ value returns what we would deem correct
1. Use os.environ.copy to prevent this from occurring
2. Use a contextmanager to control the modifications
2/14/2024 - Threading guide
Basic Usage
ThreadPoolExecutor