STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8603> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com