]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-136520: Clarify docs for _pack_ & _align_ (GH-137036) (#137381)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:39:57 +0000 (20:39 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:39:57 +0000 (20:39 +0200)
commita868c6a70d87e7529bba78610b7d0f380bbfbb94
tree52c2fd3242d1f1a66fcc6b45bc8c6252254e5ec1
parent14e8decde76d1ae5055dd41e4cb899e4941f020b
[3.14] gh-136520: Clarify docs for _pack_ & _align_ (GH-137036) (#137381)

gh-136520: Clarify docs for _pack_ & _align_ (GH-137036)

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 8943bb722f2f88a95ea6c5ee36bb5d540740d792)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/library/ctypes.rst