-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-43776: Remove list call from args in Popen repr #25338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Can you add a regression test case to Lib/test/test_subprocess.py? |
@gpshead I've added a test for the new changes as well as a NEWS entry. Please let me know if you have any suggestions for improvements or if you have comments on the changes. |
Misc/NEWS.d/next/Library/2021-04-12-00-00-00.bpo-43776.p14y7a.rst
Outdated
Show resolved
Hide resolved
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Please do the CLA signing dance as describe by the bot above as well. Thanks! |
I have made the requested changes; please review again |
Thanks for making the requested changes! @gpshead: please review the changes made to this pull request. |
@mpkocher: Status check is done, and it's a success ✅ . |
Thanks @mpkocher for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, @mpkocher, I could not cleanly backport this to |
Does this still need backport to 3.9? If not, please remove the label. |
Thanks @mpkocher for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry @mpkocher, I had trouble checking out the |
…5338) Removes the `list` call in the Popen `repr`. Current implementation: For cmd = `python --version`, with `shell=True`. ```bash <Popen: returncode: None args: ['p', 'y', 't', 'h', 'o', 'n', ' ', '-', '-',...> ``` For `shell=False` and args=`['python', '--version']`, the output is correct: ```bash <Popen: returncode: None args: ['python', '--version']> ``` With the new changes the `repr` yields: For cmd = `python --version`, with `shell=True`: ```bash <Popen: returncode: None args: 'python --version'> ``` For `shell=False` and args=`['python', '--version']`, the output: ```bash <Popen: returncode: None args: ['python', '--version']> ``` Automerge-Triggered-By: GH:gpshead. (cherry picked from commit db0c5b7) Co-authored-by: M. Kocher <[email protected]>
GH-26510 is a backport of this pull request to the 3.9 branch. |
…H-26510) Removes the `list` call in the Popen `repr`. Current implementation: For cmd = `python --version`, with `shell=True`. ```bash <Popen: returncode: None args: ['p', 'y', 't', 'h', 'o', 'n', ' ', '-', '-',...> ``` For `shell=False` and args=`['python', '--version']`, the output is correct: ```bash <Popen: returncode: None args: ['python', '--version']> ``` With the new changes the `repr` yields: For cmd = `python --version`, with `shell=True`: ```bash <Popen: returncode: None args: 'python --version'> ``` For `shell=False` and args=`['python', '--version']`, the output: ```bash <Popen: returncode: None args: ['python', '--version']> ``` Automerge-Triggered-By: GH:gpshead. (cherry picked from commit db0c5b7) Co-authored-by: M. Kocher <[email protected]> Co-authored-by: M. Kocher <[email protected]>
Removes the
list
call in the Popenrepr
.Current implementation:
For cmd =
python --version
, withshell=True
.For
shell=False
and args=['python', '--version']
, the output is correct:With the new changes the
repr
yields:For cmd =
python --version
, withshell=True
:For
shell=False
and args=['python', '--version']
, the output:https://bugs.python.org/issue43776
Automerge-Triggered-By: GH:gpshead