-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-22865: Expand on documentation for the pty.spawn function #11980
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
3db24cc
to
ae9ad20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as the _read function is:
def _read(fd):
"""Default read function."""
return os.read(fd, 1024)
and the os.read
documentation states If the end of the file referred to by fd has been reached, an empty bytes object is returned.
, it's consistent.
I rewrote some things and included the suggestions made by @vadmium. I also added a bunch of documentation about what happens when an EOF condition is signalled. |
I don't know well the pty module and so is unable to review this long description. So I asked for a review at: By the way, I'm fine with documenting bugs, but for the longer term we should maybe try to fix it ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
c6ba002
to
3f67273
Compare
Is there anything I can do to help move this forward again? @vstinner @csabella @JulienPalard |
Thanks @RadicalZephyr for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, @RadicalZephyr and @vstinner, I could not cleanly backport this to |
Honestly, I'm far from an expert of PTY. I trust you, so I just merged your PR :-D
Can you please try to backport the change to 3.7? If not, I just close https://bugs.python.org/issue22865 |
…ythonGH-11980). (cherry picked from commit 522ccef) Co-authored-by: Geoff Shannon <earthlingzephyr@gmail.com>
GH-13455 is a backport of this pull request to the 3.7 branch. |
thanks @vstinner! |
Honestly, thanks to you. Your doc enhancement is really helpful, and we need more experts on some special functions like pty.spawn(). There are so many corner cases which are painful to discover by trail-and-error. |
Documentation enhancements for the
pyt.spawn
function as discussed in issue 22865.https://bugs.python.org/issue22865