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! |
Sorry, something went wrong.
3db24cc to
ae9ad20
Compare
February 22, 2019 10:39
There was a problem hiding this comment.
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.
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
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 ;-) |
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
c6ba002 to
3f67273
Compare
May 19, 2019 20:59
|
Is there anything I can do to help move this forward again? @vstinner @csabella @JulienPalard |
Sorry, something went wrong.
|
Thanks @RadicalZephyr for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, something went wrong.
|
Sorry, @RadicalZephyr and @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
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 |
Sorry, something went wrong.
…ythonGH-11980). (cherry picked from commit 522ccef) Co-authored-by: Geoff Shannon <earthlingzephyr@gmail.com>
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. |
Sorry, something went wrong.
Documentation enhancements for the
pyt.spawnfunction as discussed in issue 22865.https://bugs.python.org/issue22865