Skip to content

gh-42127 Expand child process console opening comments. #96987

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

Closed
wants to merge 3 commits into from
Closed

gh-42127 Expand child process console opening comments. #96987

wants to merge 3 commits into from

Conversation

LeamHall
Copy link

@LeamHall LeamHall commented Sep 21, 2022

This expands the child process console opening in Doc/library/subprocess.rst. This PR is compatible with branch 3.11, but not with branch 3.10.

@bedevere-bot bedevere-bot added awaiting review docs Documentation in the Doc dir skip news labels Sep 21, 2022
the child's file handles will be inherited from the parent for console
applications, if the child can connect to the console. Otherwise it will
allocate a new console. For non-console applications, the window manager
and graphical shell will determine behavior. Additionally, *stderr* can be
Copy link
Contributor

@slateny slateny Sep 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be better to avoid changing the original sentence structure starting from 'Additionally' so it'll a bit easier to review the diffs and changes, since the sentences are identical from that point onward.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the point, start a new line at "Additionally". There are two instances of this dcoument section, lines 272 and 492 in the existing code. For 272, it would be easy to insert as you noted, but the "Additionally" on line 492 is not at a line break. What should be done about that one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, try to minimize changes to untouched lines. It is fine if one line is a bit too long, or if you move its end to a new line that’s a bit short. It doesn’t change the output but keeps git log / annotate / etc useful 🙂

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes made, did I understand and implement correctly?

Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fully, but I completed the change!

@LeamHall
Copy link
Author

Ah, I see what you did. I had avoided that, on the assumption that it would still impact the diffs. Was I incorrect?

@merwok
Copy link
Member

merwok commented Sep 23, 2022

Oh were you worried about adding more changes to the files? For Python pull requests, we don’t care if it takes multiple commits to get to a good result, the pull request is «squash merged» meaning all changes become one commit added to the main branch. So here I didn’t mind changing more lines again in an intermediary commit, I only cared about the total diff. Hope this explains it!

@LeamHall LeamHall closed this by deleting the head repository Sep 25, 2022
@LeamHall LeamHall reopened this Sep 28, 2022
@LeamHall
Copy link
Author

Sorry, I don't see a way to connect a different source branch to this PR. I'll close it again and start anew. The new PR is #97614

@LeamHall LeamHall closed this Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants