[issue8640] subprocess: canonicalize env to bytes on Unix (Python3)

STINNER Victor report at bugs.python.org
Sun May 16 04:29:36 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Python 3.1 accepts duplicate variables (str name, bytes name). It creates the two variables is a random order:

>>> subprocess.call(['env'], env={'xx': 'str', b'xx': 'bytes'})
xx=str
xx=bytes
0
>>> subprocess.call(['env'], env={'xxx': 'str', b'xxx': 'bytes'})
xxx=bytes
xxx=str
0

----------

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


More information about the Python-bugs-list mailing list