[docs] [issue32392] subprocess.run documentation does not have **kwargs

Berker Peksag report at bugs.python.org
Wed May 16 03:53:58 EDT 2018

Berker Peksag <berker.peksag at gmail.com> added the comment:

I agree with Xavier's comment, but I've bitten by this before so I think it would be better if we add more common arguments to the subprocess.run() signature.

Adding **kwargs wouldn't be entirely correct since subprocess.run() doesn't pass all its arguments to subprocess.Popen().

Let's add 'env=None' to the signature of subprocess.run():

.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\
                  shell=False, cwd=None, timeout=None, check=False, \
                  encoding=None, errors=None, text=None)


keywords: +easy
nosy: +berker.peksag
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.6, Python 3.8

Python tracker <report at bugs.python.org>

More information about the docs mailing list