This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twouters
Recipients gregory.p.smith, twouters
Date 2011-06-21.14:36:00
SpamBayes Score 1.0244437e-06
Marked as misclassified No
Message-id <1308666962.05.0.419958842608.issue12383@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-06-21 14:36:02twouterssetrecipients: + twouters, gregory.p.smith
2011-06-21 14:36:02twouterssetmessageid: <1308666962.05.0.419958842608.issue12383@psf.upfronthosting.co.za>
2011-06-21 14:36:01twouterslinkissue12383 messages
2011-06-21 14:36:00twouterscreate