[issue17702] os.environ converts key type from string to bytes in KeyError exception

STINNER Victor report at bugs.python.org
Fri Apr 12 10:43:35 CEST 2013


STINNER Victor added the comment:

"It is an interesting question whether or not its value in the exception should be considered a bug."

I consider it as a bug because it is very surprising to have a different key on the error. Attached patch fixes the issue.

----------
keywords: +patch
versions: +Python 3.4
Added file: http://bugs.python.org/file29788/os_environ_keyerror.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17702>
_______________________________________


More information about the Python-bugs-list mailing list