-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-138966: Add description for gi_suspended attribute #139008
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.
LGTM
Thanks @codenamenam for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @codenamenam for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…GH-139008) (cherry picked from commit c025576) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
…GH-139008) (cherry picked from commit c025576) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
GH-139019 is a backport of this pull request to the 3.13 branch. |
GH-139020 is a backport of this pull request to the 3.14 branch. |
Issue: #138966
This pull request adds the
gi_suspended
attribute for generator objects within theinspect
module's "Types and members" table.The
gi_suspended
attribute is a read-only boolean that indicates whether a generator is currently paused at ayield
expression. Its purpose is similar togi_running
but for the suspended state.gi_suspended
should be added to Types and members #138966📚 Documentation preview 📚: https://cpython-previews--139008.org.readthedocs.build/