[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

STINNER Victor report at bugs.python.org
Mon Aug 30 11:08:59 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

For the very specific case of os.environ.clear(), the C function clearenv() could be used if available.

While clearenv() is available in the glibc, it's not a POSIX function.

----------

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


More information about the Python-bugs-list mailing list