Message138787
The addition of the _posixsubprocess module in 3.2 introduced a change of behaviour when passing an empty dict (or other false value besides None) as env:
python3.1 -c 'import subprocess; print(subprocess.Popen(["env"], env={}, stdout=subprocess.PIPE).communicate())'
(b'', None)
python3.2 -c 'import subprocess; print(subprocess.Popen(["env"], env={}, stdout=subprocess.PIPE).communicate())'
(b'LC_MONETARY=C\nSHELL=/bin/bash\nTERM=scr....', None)
The test for 'env' being the default (None) is not explicit enough. |
|
Date |
User |
Action |
Args |
2011-06-21 14:36:02 | twouters | set | recipients:
+ twouters, gregory.p.smith |
2011-06-21 14:36:02 | twouters | set | messageid: <1308666962.05.0.419958842608.issue12383@psf.upfronthosting.co.za> |
2011-06-21 14:36:01 | twouters | link | issue12383 messages |
2011-06-21 14:36:00 | twouters | create | |
|