[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)
Serhiy Storchaka
report at bugs.python.org
Wed Feb 19 15:39:24 CET 2014
Serhiy Storchaka added the comment:
Are there supported platforms on which setenv() is not supported? When we will migrate to setenv(), an argument check will be not needed.
In any case I think we should wrap unsetenv() in os.environ.clear() so that it should try to remove all environment variables even if some calls of unsetenv() fails.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20658>
_______________________________________
More information about the Python-bugs-list
mailing list