Skip to content

Conversation

@gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented May 17, 2023

According to my analysis in the issue, the warning is more annoying/distracting than useful, and since the docs for StreamWriter.close() say that calling wait_closed() is optional, we shouldn't penalize users for not waiting if there was an error (e.g. BrokenPipeError in drain()).

@gvanrossum gvanrossum added 3.12 only security fixes needs backport to 3.11 only security fixes and removed 3.12 only security fixes labels May 17, 2023
Copy link
Contributor

@willingc willingc left a comment

Choose a reason for hiding this comment

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

LGTM

@gvanrossum
Copy link
Member Author

Waiting for @kumaraditya303, but I'd like to get this in 3.12, since it's so minor.

@kumaraditya303
Copy link
Contributor

LGTM

@gvanrossum gvanrossum merged commit 7fc8e2d into python:main May 17, 2023
@miss-islington
Copy link
Contributor

Thanks @gvanrossum for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@gvanrossum gvanrossum deleted the wait-closed-fix branch May 17, 2023 23:45
@bedevere-bot
Copy link

GH-104594 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 17, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 17, 2023
…d pipe stdin (pythonGH-104586)

(cherry picked from commit 7fc8e2d)

Co-authored-by: Guido van Rossum <[email protected]>
gvanrossum added a commit that referenced this pull request May 18, 2023
…ed pipe stdin (GH-104586) (#104594)

(cherry picked from commit 7fc8e2d)

Co-authored-by: Guido van Rossum <[email protected]>
JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants