[issue39413] Implement os.unsetenv() on Windows

Eryk Sun report at bugs.python.org
Tue Jan 21 10:27:01 EST 2020


Eryk Sun <eryksun at gmail.com> added the comment:

This bypasses the CRT's copy of the environment. If any C code calls [_w]getenv, it will still see the variable defined. The only way it won't is if setting the value also bypassed the CRT environment by directly calling SetEnvironmentVariableW.

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39413>
_______________________________________


More information about the Python-bugs-list mailing list