| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Please move the line before open() call.
It saves 1 open file descriptor.
Not a very big deal but why not?
Sorry, something went wrong.
There was a problem hiding this comment.
I'm not sure I even understand this code :) What's it for? Why does monkeypatching self._proc.stdin work?
Sorry, something went wrong.
There was a problem hiding this comment.
@1st1 please read a code comment at the begin of the method.
AIX requires to make stdin a socket pair (I love all Unix flavors and their differences).
proc.stdin should be a writable file-like object.
open() creates a file object from write-fd of created socket pair.
It exists in asyncio starting from very old times.
Sorry, something went wrong.
There was a problem hiding this comment.
@asvetlov: Good point. I suppose since open(stdin_w.detach(), ...) cannot fail I should have kept the order.
Sorry, something went wrong.
There was a problem hiding this comment.
@1st1 please read a code comment at the begin of the method.
Yeah, that's what I did first. The comment doesn't explain why we pass the read end of the pipe to Popen initially (I see that we then monkey-patch it to the write end).
It exists in asyncio starting from very old times.
I've no problem with the code or this PR, but I wish that the comment is a bit more elaborate.
Sorry, something went wrong.
There was a problem hiding this comment.
@1st1 you know, I'm bad in comment writing, sorry.
Would you propose exact text?
Sorry, something went wrong.
|
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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @asvetlov: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Is there anything I can do to help this move along? |
Sorry, something went wrong.
|
Sorry, I can't merge this PR. Reason: Base branch was modified. Review and try the merge again.. |
Sorry, something went wrong.
|
Thanks @niklasf for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, something went wrong.
…ls (pythonGH-11553) This slightly expands an existing test case `test_popen_error` to trigger a `ResourceWarning` and fixes it. https://bugs.python.org/issue35721 (cherry picked from commit 9932fd9) Co-authored-by: Niklas Fiekas <niklas.fiekas@backscattering.de>
|
GH-13439 is a backport of this pull request to the 3.7 branch. |
Sorry, something went wrong.
|
Let's land it. |
Sorry, something went wrong.
…ls (GH-11553) This slightly expands an existing test case `test_popen_error` to trigger a `ResourceWarning` and fixes it. https://bugs.python.org/issue35721 (cherry picked from commit 9932fd9) Co-authored-by: Niklas Fiekas <niklas.fiekas@backscattering.de>
|
Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This slightly expands an existing test case test_popen_error to trigger a ResourceWarning and fixes it.
https://bugs.python.org/issue35721