Skip to content

GH-117714: implement athrow().close() and asend().close() using throw #117906

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

Merged
merged 4 commits into from
May 6, 2024

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Apr 15, 2024

@graingert graingert changed the title GH-117536: fix athrow().throw(...) unawaited warning GH-117714: replace athrow().close() and asend().close() stubs with implimentations Apr 15, 2024
@graingert graingert force-pushed the gen-close-as-throw branch 2 times, most recently from e9116f3 to 743ded1 Compare April 15, 2024 19:21
@graingert graingert changed the title GH-117714: replace athrow().close() and asend().close() stubs with implimentations GH-117714: replace athrow().close() and asend().close() stubs with implementations Apr 15, 2024
@graingert graingert changed the title GH-117714: replace athrow().close() and asend().close() stubs with implementations GH-117714: implement athrow().close() and asend().close() using throw Apr 16, 2024
@graingert graingert force-pushed the gen-close-as-throw branch from 7b46d8e to 8e1fb97 Compare April 24, 2024 12:42
@graingert graingert force-pushed the gen-close-as-throw branch from 8e1fb97 to e351047 Compare May 1, 2024 07:04
@graingert graingert marked this pull request as ready for review May 1, 2024 07:07
@graingert graingert requested a review from markshannon as a code owner May 1, 2024 07:07
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

I agree.
It takes time to wrap my head around this, though :)

Co-authored-by: Petr Viktorin <[email protected]>
@encukou encukou enabled auto-merge (squash) May 6, 2024 17:01
@encukou encukou merged commit e5c6992 into python:main May 6, 2024
36 checks passed
@graingert graingert deleted the gen-close-as-throw branch May 6, 2024 17:14
@graingert
Copy link
Contributor Author

@encukou is this change too much like a feature to be backported to 3.12?

@graingert graingert added the needs backport to 3.12 only security fixes label May 6, 2024
@miss-islington-app
Copy link

Thanks @graingert for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 6, 2024
… throw (pythonGH-117906)

* pythonGH-117714: replace athrow().close() and asend().close() stubs with implimentations

* test athrow().close() and asend().close() raises RuntimeError

* 📜🤖 Added by blurb_it.

* Update Objects/genobject.c

Co-authored-by: Petr Viktorin <[email protected]>

---------

(cherry picked from commit e5c6992)

Co-authored-by: Thomas Grainger <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented May 6, 2024

GH-118663 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label May 6, 2024
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
… throw (pythonGH-117906)

* pythonGH-117714: replace athrow().close() and asend().close() stubs with implimentations

* test athrow().close() and asend().close() raises RuntimeError

* 📜🤖 Added by blurb_it.

* Update Objects/genobject.c

Co-authored-by: Petr Viktorin <[email protected]>

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Petr Viktorin <[email protected]>
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.

2 participants