[issue5870] subprocess.DEVNULL

Lucas Prado Melo report at bugs.python.org
Sun Jul 12 14:21:58 CEST 2009

Lucas Prado Melo <lucaspradomelo at gmail.com> added the comment:

-1 on this one.
It is not a portable decision (only *nix OSes do have /dev/null).
Also, why would we want it as a default constant? The subprocess module
would need to open /dev/null every time. Despite that, I can't see how
would someone use the redirection of errors to /dev/null through a
python script and, at the same time, make it seem not a bad practice at all.

nosy: +lucaspmelo

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list