Message211617
> It comes from the real environment.
Oh. It looks possible to define an environment variable with an empty key, but not to remove it:
$ env -i =value python -c 'import pprint, os; pprint.pprint(os.environ); del os.environ[""]'
environ({'': 'value'})
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "Lib/os.py", line 662, in __delitem__
self.unsetenv(encodedkey)
OSError: [Errno 22] Invalid argument |
|
Date |
User |
Action |
Args |
2014-02-19 13:38:41 | vstinner | set | recipients:
+ vstinner, blueyed, ned.deily |
2014-02-19 13:38:41 | vstinner | set | messageid: <1392817121.89.0.754641209683.issue20658@psf.upfronthosting.co.za> |
2014-02-19 13:38:41 | vstinner | link | issue20658 messages |
2014-02-19 13:38:41 | vstinner | create | |
|