Skip to content
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

gh-101432: Update the docs for inspect.getcoroutinestate #101435

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alicederyn
Copy link

@alicederyn alicederyn commented Jan 30, 2023

Coroutine-like objects now additionally need a cr_suspended attribute to be supported by the inspect.getcoroutinestate method.

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jan 30, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@alicederyn
Copy link
Author

alicederyn commented Jan 30, 2023

Assuming I'm right about the issue, this may be a sensible way to update the docs.

@alicederyn alicederyn force-pushed the update.getcoroutinestate.docs branch from 76c76cc to 22e14ca Compare January 31, 2023 17:12
Coroutine-like objects now additionally need a ``cr_suspended``
attribute to be supported by this method.
@alicederyn alicederyn force-pushed the update.getcoroutinestate.docs branch from 22e14ca to 5593f13 Compare January 31, 2023 17:14
@@ -1475,6 +1475,9 @@ generator to be determined easily.

.. versionadded:: 3.5

.. versionchanged:: 3.11
Added requirement on ``cr_suspended`` attribute.
Copy link
Contributor

Choose a reason for hiding this comment

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

Just wondering if we should add 'for coroutine-like object.', i.e.:

Added requirement on cr_suspended attribute for coroutine-like object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants