FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-31961: subprocess.run() now accepts path-like args by Phaqui · Pull Request #4329 · python/cpython · GitHub

/ cpython Public

bpo-31961: subprocess.run() now accepts path-like args - #4329

Merged
gpshead merged 8 commits into
python:masterfrom
Phaqui:fix-issue-31961
Jan 30, 2018
Merged

bpo-31961: subprocess.run() now accepts path-like args#4329
gpshead merged 8 commits into
python:masterfrom
Phaqui:fix-issue-31961

Conversation

Phaqui commented Nov 8, 2017
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

As per bpo-31961, if the args argument of subprocess.run() was a path-like object, TypeError would raised. If the args argument was a sequence where the first element was a path-like object, it would work on posix, but not on windows. Both of these issues are resolved in this PR.

https://bugs.python.org/issue31961

to better explain it.

there may be better ways to write this, but this plus the comments will do for now.

I don't really _like_ catching TypeError. It's too generic.
gpshead added the type-feature A feature request or enhancement label Jan 30, 2018
gpshead self-assigned this Jan 30, 2018
gpshead merged commit dd42cb7 into python:master Jan 30, 2018
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 26, 2018
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 27, 2018
…)" (pythonGH-5912)

* Revert "bpo-31961: subprocess now accepts path-like args (pythonGH-4329)"

This reverts commit dd42cb7.
(cherry picked from commit be50a7b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
ned-deily pushed a commit that referenced this pull request Feb 27, 2018
…5912)

* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb7.
ned-deily pushed a commit that referenced this pull request Feb 27, 2018
…H-5912) (GH-5931)

* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb7.
(cherry picked from commit be50a7b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 28, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL