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

2019-06-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! -- assignee: -> gregory.p.smith resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker

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

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 10b4fd98142edef6ab7b034e10ae5c9551043999 by Miss Islington (bot) in branch '3.7': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727) https://github.com/python/cpython/commit/10b4fd98142edef6ab7b034e10ae5c9551043999 --

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

2019-06-08 Thread miss-islington
miss-islington added the comment: New changeset 6324ac1293b2cf71559869b88f89f510f9a62a8e by Miss Islington (bot) in branch '3.8': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727) https://github.com/python/cpython/commit/6324ac1293b2cf71559869b88f89f510f9a62a8e --

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

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13790 pull_request: https://github.com/python/cpython/pull/13917 ___ Python tracker ___ __

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

2019-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +13789 pull_request: https://github.com/python/cpython/pull/13916 ___ Python tracker ___ __

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

2019-06-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8cc605acdda5aff250ab4c9b524a7560f90ca9f3 by Gregory P. Smith (Rémi Lapeyre) in branch 'master': bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727) https://github.com/python/cpython/commit/8cc605acdda5aff250ab4c9b524a7560f9

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

2019-02-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I opened a PR with @josh.r proposed change. -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python

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

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11611 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

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

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11611, 11612, 11613 stage: -> patch review ___ Python tracker ___ ___

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

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11611, 11612 stage: -> patch review ___ Python tracker ___ ___ P

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

2018-10-03 Thread Alessandro
Alessandro added the comment: > and I got the same ValueError as for passing using kwargs. Where did you get > the idea subprocess.run('ls', input=b'', stdin=None) worked? Sorry, the example was wrong. Both calls have the same behaviour. > so it obeys the documented API (that says stdin defa

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

2018-10-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: The actual code receives input by name, but stdin is received in **kwargs. The test is just: if input is not None: if 'stdin' in kwargs: raise ValueError(...) kwargs['stdin'] = PIPE Perhaps just change `if 'stdin' in kwargs:`

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

2018-10-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: I just tried: subprocess.run('ls', input=b'', stdin=None) and I got the same ValueError as for passing using kwargs. Where did you get the idea subprocess.run('ls', input=b'', stdin=None) worked? -- nosy: +josh.r ___

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

2018-10-03 Thread Alessandro
Alessandro 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 excep

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

2018-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with this? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

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

2018-10-03 Thread Alessandro
New submission from Alessandro : If input and stdin parameters are passed as keyword arguments to subprocess.run, an exception is thrown even if input and stdin are both None. The exception is ValueError: stdin and input arguments may not both be used. I attach a minimal working example of th