[issue8603] Create a bytes version of os.environ and getenvb()
STINNER Victor
report at bugs.python.org
Thu May 6 15:03:51 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Patch version 3:
- update posix documentation
- improve os.environ and os.getenv() documentation: specify the type and document the encoding/error handler, add a link to environb/getenvb
- os.environ and os.environb now check the argument types (raise a better error), on Windows and Unix. Before my patch, os.environ[b'key']=b'value' sets the variable "b'key'" to "b'value'" :-(
- restore os.environb in TestEnviron.tearDown() (test_os)
- fix patch on posixmodule.c indentation
- fix a regression introduced by my patch: set PyErr_NoMemory() on error (newstr==NULL in posixmodule.c)
- rename keymap to encodekey
----------
Added file: http://bugs.python.org/file17236/os_environb-3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8603>
_______________________________________
More information about the Python-bugs-list
mailing list