[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

Alessandro report at bugs.python.org
Wed Oct 3 15:22:57 EDT 2018


Alessandro <aecantini at gmail.com> added the comment:

subprocess.run('ls', input=b'', stdin=None) # this is ok

kwargs = {'input': b'', 'stdin': None}
subprocess.run('ls', **kwargs) # this throws exception

The two calls should have the same behaviour, but one throws exception and the other doesn't. I think the exception shouldn't be thrown, because stdin is None.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34886>
_______________________________________


More information about the Python-bugs-list mailing list