This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Aaron.Meurer, r.david.murray, rhettinger, vstinner
Date 2017-12-13.13:50:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513173003.13.0.213398074469.issue32300@psf.upfronthosting.co.za>
In-reply-to
Content
This is a consequence of the repr used by KeysView, which it inherits from MappingView.  I agree that the result is surprising, but there may not be a generic fix.  It's not entirely clear what KeysView should do here, but presumably we could at least add a repr to environ's use of it that would produce something useful.

Note that a workaround when doing something like a travis debug is to print os.environ._data.keys(), which will print the bytes versions of the keys.  I wouldn't recommend depending on that continuing to, though ;)
History
Date User Action Args
2017-12-13 13:50:03r.david.murraysetrecipients: + r.david.murray, rhettinger, vstinner, Aaron.Meurer
2017-12-13 13:50:03r.david.murraysetmessageid: <1513173003.13.0.213398074469.issue32300@psf.upfronthosting.co.za>
2017-12-13 13:50:03r.david.murraylinkissue32300 messages
2017-12-13 13:50:03r.david.murraycreate