STINNER Victor added the comment: By the way, Python allows also to set an environment with a name containing "=", whereas getenv/setenv/unsetenv doesn't.
$ env -i python -c 'import pprint, posix, os; os.environ["a="]="1"; print(os.environ); posix.unsetenv("a=")' environ({'a=': '1'}) Traceback (most recent call last): File "<string>", line 1, in <module> OSError: [Errno 22] Invalid argument ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20658> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com