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

STINNER Victor report at bugs.python.org
Wed Feb 19 14:27:28 CET 2014


STINNER Victor added the comment:

"Please note that I have noticed this not because of setting it via `os.environ`, but because a program using `os.environ.clear()` crashed:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1281086"

The bug is not os.environ.clear(), but that os.environ contains an empty string.

It would help to know if the key was set manually by apport, or if it comes from the real environment. The environment looks correct:
https://launchpadlibrarian.net/166517334/ProcEnviron.txt

----------

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


More information about the Python-bugs-list mailing list