-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-76991: Allow accessing the ags_gen and agt_gen attrs of async generators #11166
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, thanks!
Would you add a docs update to reflect new fields?
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Please don't merge this. I'm not sure i want them to be exposed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to consider this carefully. Exposing these fields pins the current implementation and might prevent us from evolving it. It's also unclear if it's possible to implement this in PyPy et al
@1st1 thank you for sharing your worries. |
@1st1, just wondering if there is any update for this idea? Should the PR be closed so that the discussion can happen on the bug tracker first? Thanks! |
Another way of fixing the issue described in bpo-32810 without adding extra field names is to expose
Retrieving the stack can then be implemented by simply walking up the chain of coroutines using |
https://bugs.python.org/issue32810 is closed. What is the status of this PR? |
This comment was marked as outdated.
This comment was marked as outdated.
I fixed the merge conflicts, but the tests are failing all over the place. It looks to me the assumptions in the test in 6024d01 from 2018 won't hold in 2023. |
I am just closing this. In 2018 @1st1 didn't like the idea of exposing these fields. Here we are 6 years later and the only reason we're back looking at this is that someone decided to audit the OP's PRs. |
https://bugs.python.org/issue32810