[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)
Ned Deily
report at bugs.python.org
Mon Feb 17 23:23:17 CET 2014
Ned Deily added the comment:
According to the Open Group Base Specification (Issue 7 2013 Issue):
"The setenv() function shall fail if:
[EINVAL]
The envname argument points to an empty string or points to a string containing an '=' character."
So it seems to me that the issue here is that os.environ[''] attempts to allow you to create a environment variable with a null key.
----------
nosy: +ned.deily
stage: -> test needed
type: crash ->
versions: +Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20658>
_______________________________________
More information about the Python-bugs-list
mailing list