Skip to content

gh-136520: Clarify docs for _pack_ & _align_ #137036

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

encukou
Copy link
Member

@encukou encukou commented Jul 23, 2025

Move docs to the reference section & reduce the “tutorial” part to a quick intro & link.

Clarify what values are accepted.

Add macro/attribute equivalents.

Discourage align values that aren't powers of two.


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

Move docs to the reference section & reduce the “tutorial” part to
a quick intro & link.

Clarify what values are accepted.

Add macro/attribute equivalents.

Discourage _align_ values that aren't powers of two.
@bedevere-app bedevere-app bot added awaiting core review docs Documentation in the Doc dir skip news labels Jul 23, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Jul 23, 2025
@encukou encukou added the needs backport to 3.14 bugs and security fixes label Aug 4, 2025
@encukou encukou merged commit 8943bb7 into python:main Aug 4, 2025
34 checks passed
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Aug 4, 2025
@encukou encukou deleted the ctypes-pack-align-doc branch August 4, 2025 13:40
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 4, 2025
Move docs to the reference section & reduce the “tutorial” part to a quick intro & link.

Clarify what values are accepted.

Add macro/attribute equivalents.

Discourage _align_ values that aren't powers of two.
(cherry picked from commit 8943bb7)

Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Aug 4, 2025

GH-137381 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 Aug 4, 2025
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.

1 participant