FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Close sub-generators even if top level generator was asynchronous. by markshannon · Pull Request #96040 · python/cpython · GitHub

/ cpython Public

Close sub-generators even if top level generator was asynchronous. - #96040

Closed
markshannon wants to merge 1 commit into
python:mainfrom
faster-cpython:remove-close-on-genexit
Closed

Close sub-generators even if top level generator was asynchronous.#96040
markshannon wants to merge 1 commit into
python:mainfrom
faster-cpython:remove-close-on-genexit

Conversation

Copy link
Copy Markdown
Member

I think this is correct.
It seems odd that whether a sub-generator is closed or not depends on whether an async generator exists higher up the stack.

@brandtbucher thoughts?

Will need news and issue, if we agree this is correct.

brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Has this been abandoned, or are you still considering it for 3.13? I agree that this makes the code a bit simpler, but I find it hard to reason about whether the correctness is preserved or not (presumably there's some reason it currently works this way).

So I would lean towards not changing it, unless we have a compelling reason to.

markshannon closed this Aug 6, 2024
markshannon deleted the remove-close-on-genexit branch August 6, 2024 10:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL