[issue40497] subprocess.check_output() accept the check keyword argument
Rémi Lapeyre
report at bugs.python.org
Mon May 4 06:14:43 EDT 2020
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
> check_output() should not accept check=False.
I thought about raising ValueError instead but `subprocess.check_output([...], check=False)` is actually a convenient shortcut over `subprocess.run([...], stdout=subprocess.PIPE).stdout` and I can't think of much drawbacks if someone explicitly ask for the check to be disabled. Is there any way we could have that?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40497>
_______________________________________
More information about the Python-bugs-list
mailing list