New submission from Antoine Pitrou <pit...@free.fr>:

os.environ has the same repr as os.environb, that is, it looks as though it's a 
mapping of bytes to bytes, while it's a mapping of str to str.

>>> repr(os.environ)[:50]
"environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r"
>>> repr(os.environb)[:50]
"environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r"

----------
assignee: haypo
components: Library (Lib)
messages: 110547
nosy: haypo, pitrou
priority: high
severity: normal
status: open
title: buggy repr for os.environ
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9283>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to