◐ Shell
clean mode source ↗

Message 105845 - Python tracker

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