[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-27 Thread Cristian Consonni
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

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-27 Thread Cristian Consonni
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&#

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-27 Thread Cristian Consonni
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

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
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

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
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