[New-bugs-announce] [issue40497] subprocess.check_output() accept the check keyword argument
Rémi Lapeyre
report at bugs.python.org
Mon May 4 05:54:48 EDT 2020
New submission from Rémi Lapeyre <remi.lapeyre at henki.fr>:
The subprocess.check_output() raises TypeError when given the `check` keyword-argument:
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output(['ls'], check=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
TypeError: run() got multiple values for keyword argument 'check'
It should just use True as the default when it's not specified in kwargs.
----------
components: Library (Lib)
messages: 368027
nosy: remi.lapeyre
priority: normal
severity: normal
status: open
title: subprocess.check_output() accept the check keyword argument
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40497>
_______________________________________
More information about the New-bugs-announce
mailing list