[issue5870] subprocess.DEVNULL

Georg Brandl report at bugs.python.org
Sun Jan 2 15:42:47 CET 2011

Georg Brandl <georg at python.org> added the comment:

Hmm, we don't like these open-for-eternity file descriptors; we had such a thing for os.urandom() but removed it (see #1177468).

I'm okay with DEVNULL (or even just NULL) as a shorthand, but it should open (and close) the devnull device each time just as if a normal fd was given.

nosy: +georg.brandl

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list