]> granicus.if.org Git - python/commit
Issue #8603: Create a bytes version of os.environ for Unix
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 6 May 2010 22:05:07 +0000 (22:05 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 6 May 2010 22:05:07 +0000 (22:05 +0000)
commit84ae1180063a6f9fc39c22a5977b49aaac8c3b3c
tree188bac431d36a612b99a98fc263a0baa96ce67c2
parentd930b63583a8dc1ece9407652636209a3d396149
Issue #8603: Create a bytes version of os.environ for Unix

Create os.environb mapping and os.getenvb() function, os.unsetenv() encodes str
argument to the file system encoding with the surrogateescape error handler
(instead of utf8/strict) and accepts bytes, and posix.environ keys and values
are bytes.
Doc/library/os.rst
Doc/library/posix.rst
Lib/os.py
Lib/test/test_os.py
Lib/test/test_subprocess.py
Misc/NEWS
Modules/posixmodule.c