Skip to content

Conversation

codenamenam
Copy link
Contributor

@codenamenam codenamenam 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-bot bot commented Sep 17, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

LGTM

@ZeroIntensity ZeroIntensity merged commit c025576 into python:main Sep 17, 2025
31 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Sep 17, 2025
@ZeroIntensity ZeroIntensity 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

bedevere-app bot commented Sep 17, 2025

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

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

bedevere-app bot commented Sep 17, 2025

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

@bedevere-app bedevere-app bot 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants