Cristian Consonni added the comment:
After re-reading myself a couple of times I have to say that following
subprocess.Popen and adding True and False with the meaning:
* True -> subprocess inherits file descriptors from the parent process
(equivalent to None)
* False -> /dev/null
seems
Cristian Consonni added the comment:
Hi David,
*now* I understand your point (!) and, yes, this is something I have thought
about.
Basically, I was thinking that with this addition I wanted an easy way to
suppress stdout/stderr output. I have thought about simply exposing
subprocess.Popen
Cristian Consonni added the comment:
Hi David,
at the moment the other parameters used by the open()[1] - 'new' and
'autoraise' - have no direct mapping to other subprocess.Popen(), they are
passed as options to the call for the specific browsers.
(e.g. firefox -new-tab ht
Cristian Consonni added the comment:
Hi David,
thanks for your feedback.
The parameters' name are indeed stdout and stderr as the one used by
subprocess.Popen().
Here's the patch file without the pep 8 modifications.
Thanks,
Cristian
--
Added file: http://bugs.python.org
New submission from Cristian Consonni:
Hello,
I would like to propose a patch for the webbrowser module to actively suppress
any output (both on stdout and stderr) from the module itself.
At the moment, doing a quick internet search, the best approximation to obtain
this kind of behavior