Skip to content

Conversation

@codenamenam
Copy link
Contributor

@codenamenamcodenamenam commented Sep 17, 2025

Issue: #138966

This pull request adds the gi_suspended attribute for generator objects within the inspect module's "Types and members" table.

The gi_suspended attribute is a read-only boolean that indicates whether a generator is currently paused at a yield expression. Its purpose is similar to gi_running but for the suspended state.


📚 Documentation preview 📚: https://cpython-previews--139008.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-botbot commented Sep 17, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

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

LGTM

@ZeroIntensityZeroIntensity merged commit c025576 into python:mainSep 17, 2025
31 checks passed
@github-project-automationgithub-project-automationbot moved this from Todo to Done in Docs PRsSep 17, 2025
@ZeroIntensityZeroIntensity added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Sep 17, 2025
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2025
…GH-139008) (cherry picked from commit c025576) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2025
…GH-139008) (cherry picked from commit c025576) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
@bedevere-app
Copy link

GH-139019 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label Sep 17, 2025
@bedevere-app
Copy link

GH-139020 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14 bugs and security fixes label Sep 17, 2025
ZeroIntensity pushed a commit that referenced this pull request Sep 17, 2025
…9008) (GH-139019) gh-138966: Add description for `gi_suspended` attribute (GH-139008) (cherry picked from commit c025576) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
hugovk pushed a commit that referenced this pull request Sep 17, 2025
…9008) (#139020) Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

@codenamenam@ZeroIntensity