Message 86761 - Python tracker

Message86761

Author MrJean1
Recipients MrJean1
Date 2009-04-28.19:24:02
SpamBayes Score 0.002915528
Marked as misclassified No
Message-id <1240946644.39.0.609275389725.issue5870@psf.upfronthosting.co.za>
In-reply-to
Content
The subprocess module exposes the PIPE and STDOUT constants to be used 
for the stdin, stdout or stderr keyword arguments.

Often, stderr needs to be redirected to /dev/null (on posix).  It would 
nice if another constant was available for that purpose, e.g. 
subprocess.DEVNULL.

Perhaps, that might be as simple as

DEVNULL = os.open(os.devnull, os.OS_RDWR)

and re-use the same, single file descriptor.
History
Date User Action Args
2009-04-28 19:24:04MrJean1setrecipients: + MrJean1
2009-04-28 19:24:04MrJean1setmessageid: <1240946644.39.0.609275389725.issue5870@psf.upfronthosting.co.za>
2009-04-28 19:24:02MrJean1linkissue5870 messages
2009-04-28 19:24:02MrJean1create