Skip to content

gh-123110: correct note about _Bool in the struct module docs#123111

Merged
serhiy-storchaka merged 3 commits intopython:mainfrom
skirpichev:docs-bool-in-struct-123110
Aug 18, 2024
Merged

gh-123110: correct note about _Bool in the struct module docs#123111
serhiy-storchaka merged 3 commits intopython:mainfrom
skirpichev:docs-bool-in-struct-123110

Conversation

@skirpichev
Copy link
Copy Markdown
Member

@skirpichev skirpichev commented Aug 17, 2024

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Aug 17, 2024
@picnixz picnixz added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Aug 17, 2024
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Aug 17, 2024

I think we require C99 since Python 3.6, right?

@skirpichev
Copy link
Copy Markdown
Member Author

skirpichev commented Aug 17, 2024

Only partially. I would guess even with 3.5, since python/peps@b6efe6e.

What's important: booleans are required for 3.8+. I'm not sure if this is important to backport, but (technically) we can.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Aug 17, 2024

It's fine, I just wanted to be sure that I could mark it as backportable up to 3.12 without worries.

@skirpichev
Copy link
Copy Markdown
Member Author

BTW, I'm not sure if it does make sense to have both n*_bool() and b*_bool() functions. First set should handle different endianness.

@serhiy-storchaka serhiy-storchaka merged commit b0f462d into python:main Aug 18, 2024
@miss-islington-app
Copy link
Copy Markdown

Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 18, 2024
…ythonGH-123111)

(cherry picked from commit b0f462d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Aug 18, 2024

GH-123126 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 Aug 18, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 18, 2024
…ythonGH-123111)

(cherry picked from commit b0f462d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Aug 18, 2024

GH-123127 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Aug 18, 2024
@skirpichev skirpichev deleted the docs-bool-in-struct-123110 branch August 18, 2024 14:03
kumaraditya303 pushed a commit that referenced this pull request Aug 19, 2024
…H-123111) (#123126)

gh-123110: correct note about _Bool in the struct module docs (GH-123111)
(cherry picked from commit b0f462d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
kumaraditya303 pushed a commit that referenced this pull request Aug 19, 2024
…H-123111) (#123127)

gh-123110: correct note about _Bool in the struct module docs (GH-123111)
(cherry picked from commit b0f462d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants