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