]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104533: Fix `@ctypes.util.struct` with endian (#154038)
authorVictor Stinner <vstinner@python.org>
Sun, 19 Jul 2026 10:07:43 +0000 (12:07 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 10:07:43 +0000 (12:07 +0200)
commite26005199b17792b47bed10096eaface7fc60b40
treeee52175964dfd010032711be633b29dbb50e0ce7
parent83674483563c83550c87311adb557f8565916ce0
gh-104533: Fix `@ctypes.util.struct` with endian (#154038)

Change `_fields_` type to a list of tuples, instead of a list of lists.

Modify test.test_ctypes.test_aligned_structures to test also
`@ctypes.util.struct` decorator.
Lib/ctypes/util.py
Lib/test/test_ctypes/test_aligned_structures.py