GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — bpo-28624: Add test for subprocess to check that cmd arg supports PathLike by sayanchowdhury · Pull Request #157 · python/cpython Conversation
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :ref:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, if you follow Berker's suggestion below (which seems like a good idea to me), that will also fix this.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
berkerpeksag
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add two spaces before "*cwd* also accepts a os.PathLike object."
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be better to follow the style in the rest of stdlib: [...] child. *cmd* can be a :class:`str` and :term:`path-like <path-like object>` object.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And please add a versionchanged directive to properly document .. versionchanged:: 3.6 *cwd* parameter accepts a :term:`path-like object`.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to add a comment here.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can create a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sayanchowdhury and I were discussing that at the PyCon Pune sprints and I suggested doing it this way to avoid adding a new dependency to the test cases.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
sayanchowdhury
force-pushed
the
bpo28624
branch
3 times, most recently
from
271a1ad to
1cb8660
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
sayanchowdhury
force-pushed
the
bpo28624
branch
from
1cb8660 to
da4f28a
Compare
|
There was an error while loading. Please reload this page.
|
(Oops, after chatting to @sayanchowdhury, I realised this suggestion wasn't as useful as I thought - |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
da4f28a to
e153659
Compare
There was an error while loading. Please reload this page.
|
I ran |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I was going to merge this, but just noticed a small typo. I think this also deserves a Misc/NEWS entry since we are aim to support path-like objects in the stdlib in Python 3.6.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
cmd -> cwd
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the typo. Fixed it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e153659 to
6c208d2
Compare
|
Should add to section |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmm, you only mention string and PathLike, how about bytes? Is it acceptable?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added a test for bytes too and it's seems to be passing too. Also updated the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6c208d2 to
c096044
Compare
|
Can we please keep this PR specific to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Sayan Chowdhury <[email protected]>
|
Okay, I'll then go ahead and keep the changes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c096044 to
3370e0b
Compare
|
I have updated the code. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ts PathLike objects (python#157) (cherry picked from commit d5c11f7)
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
#157 added the test, but it's currently (correctly) broken on windows.
#157 added the test, but it's currently (correctly) broken on windows.
|
Added the sprint label, as this PR was submitted at the PyCon Pune 2017 core development sprint. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Detected by gcc -Wmisleading-indentation.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.