[New-bugs-announce] [issue39413] Implement os.unsetenv() on Windows

STINNER Victor report at bugs.python.org
Tue Jan 21 09:39:20 EST 2020


New submission from STINNER Victor <vstinner at python.org>:

os.unsetenv() is documented to be available on Windows, but it's not.

In Python 3.8, "del os.environ[key]" is implemented as:

   os.putenv(key.upper(), "")

Attached PR implements it using SetEnvironmentVariableW(name, NULL).

----------
components: Library (Lib), Windows
messages: 360402
nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: Implement os.unsetenv() on Windows
versions: Python 3.9

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


More information about the New-bugs-announce mailing list