]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131747: ctypes: Deprecate _pack_ implicitly setting _layout_ = 'ms' (GH-133205)
authorPetr Viktorin <encukou@gmail.com>
Mon, 5 May 2025 13:32:06 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 13:32:06 +0000 (15:32 +0200)
commit59f78d7b0609063d5eb7f2c2744540b47a8398fc
tree13010443e7a4ce9275c93d91b3324ce9f2e5d862
parentf554237b8ef6c60df651ac17eb0ef0c095cef185
gh-131747: ctypes: Deprecate _pack_ implicitly setting _layout_ = 'ms' (GH-133205)

On non-Windows, warn when _pack_ implicitly changes default _layout_
to 'ms'.

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
14 files changed:
Doc/deprecations/index.rst
Doc/deprecations/pending-removal-in-3.19.rst [new file with mode: 0644]
Doc/library/ctypes.rst
Doc/whatsnew/3.14.rst
Lib/ctypes/_layout.py
Lib/test/test_ctypes/test_aligned_structures.py
Lib/test/test_ctypes/test_bitfields.py
Lib/test/test_ctypes/test_byteswap.py
Lib/test/test_ctypes/test_generated_structs.py
Lib/test/test_ctypes/test_pep3118.py
Lib/test/test_ctypes/test_structunion.py
Lib/test/test_ctypes/test_structures.py
Lib/test/test_ctypes/test_unaligned_structures.py
Misc/NEWS.d/next/C_API/2025-04-28-18-26-37.gh-issue-131747.2AiQ9n.rst [new file with mode: 0644]