Skip to content

doc: update co_flags reference #132300

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

methane
Copy link
Member

@methane methane commented Apr 9, 2025

@methane methane added type-bug An unexpected behavior, bug, or error docs Documentation in the Doc dir skip issue skip news needs backport to 3.13 bugs and security fixes labels Apr 9, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 9, 2025
@methane methane changed the title doc: true division doesn't use co_flags anymore doc: update co_flags reference Apr 10, 2025
@methane methane requested a review from iritkatriel April 10, 2025 05:41

Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.

.. index:: single: documentation string

If a code object represents a function and has a docstring,
the first item in :attr:`~codeobject.co_consts` is
:data:`~inspect.CO_HAS_DOCSTRING` bit is set in :attr:`~codeobject.co_flags`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:data:`~inspect.CO_HAS_DOCSTRING` bit is set in :attr:`~codeobject.co_flags`
the :data:`~inspect.CO_HAS_DOCSTRING` bit is set in :attr:`~codeobject.co_flags`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes skip issue skip news type-bug An unexpected behavior, bug, or error
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants