[New-bugs-announce] [issue9283] buggy repr for os.environ
Antoine Pitrou
report at bugs.python.org
Sat Jul 17 13:07:39 CEST 2010
New submission from Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9283>
_______________________________________
More information about the New-bugs-announce
mailing list