Author vstinner
Recipients BreamoreBoy, David.Edelsohn, aivarsk, neologix, serhiy.storchaka, vstinner
Date 2014-10-12.15:13:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+    cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable, '-ia')

It's safer to use the subprocess module instead of using a shell (see the recent Shellshock story) to change the environment variables and to redirect stderr. subprocess now has a convinient subprocess.DEVNULL. So it's something like:

env = os.environ.copy()
env['LC_ALL'] = 'C'
process = subprocess.Popen([executable, '-ia'], stderr=subprocess.DEVNULL)
Date User Action Args
2014-10-12 15:13:37vstinnersetrecipients: + vstinner, neologix, BreamoreBoy, serhiy.storchaka, aivarsk, David.Edelsohn
2014-10-12 15:13:37vstinnersetmessageid: <>
2014-10-12 15:13:37vstinnerlinkissue17293 messages
2014-10-12 15:13:37vstinnercreate