]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Wenzel Jakob [Fri, 13 Sep 2024 15:40:25 +0000 (00:40 +0900)]
gh-100554: Add ``Py_tp_vectorcall`` slot to set ``PyTypeObject.tp_vectorcall`` using the ``PyType_FromSpec`` function family. (#123332)
utkonos [Fri, 13 Sep 2024 15:26:16 +0000 (11:26 -0400)]
Normalize cdecl formatting as found elsewhere on ctypes.rst (#121379)
Rafael Fontenelle [Fri, 13 Sep 2024 15:17:30 +0000 (12:17 -0300)]
Update to 3.13 the output of exceptions raised (#123888)
Irit Katriel [Fri, 13 Sep 2024 15:16:54 +0000 (16:16 +0100)]
gh-124022: add missing #include (#124052)
Donghee Na [Fri, 13 Sep 2024 15:15:44 +0000 (00:15 +0900)]
gh-119802: Update memory management docs for free-threaded build (gh-124006)
* gh-119802: Update memory management docs for free-threaded build
* nit
* nit
* Address code review
* nit
* Update Doc/c-api/memory.rst
Co-authored-by: Sam Gross <colesbury@gmail.com>
---------
Co-authored-by: Sam Gross <colesbury@gmail.com>
Benjamin Peterson [Fri, 13 Sep 2024 14:47:04 +0000 (07:47 -0700)]
closes gh-124016: update Unicode to 16.0.0 (#124017)
Irit Katriel [Fri, 13 Sep 2024 14:06:06 +0000 (15:06 +0100)]
gh-124022: Fix bug where class docstring is removed in interactive mode (#124023)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Nate Ohlson [Fri, 13 Sep 2024 13:40:04 +0000 (08:40 -0500)]
gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Sergey B Kirpichev [Fri, 13 Sep 2024 12:49:13 +0000 (15:49 +0300)]
gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
Bénédikt Tran [Fri, 13 Sep 2024 12:43:06 +0000 (14:43 +0200)]
gh-123961: Add `curses` prefix to global variables in `_cursesmodule.c` (#124047)
Use the `const char*` type instead of a `const *` for the encoding name.
Bénédikt Tran [Fri, 13 Sep 2024 11:26:19 +0000 (13:26 +0200)]
gh-124044: protect macros expansions in `_cursesmodules.c` using `do { ... } while (0)` (#124045)
Petr Viktorin [Fri, 13 Sep 2024 11:18:49 +0000 (13:18 +0200)]
gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947)
sobolevn [Fri, 13 Sep 2024 11:13:52 +0000 (14:13 +0300)]
gh-108303: Remove the non-test `Lib/test/reperf.py` (GH-114356)
Bénédikt Tran [Fri, 13 Sep 2024 10:33:13 +0000 (12:33 +0200)]
gh-123961: Remove global variable `ModDict` in `_cursesmodule.c` (#123962)
Savannah Ostrowski [Fri, 13 Sep 2024 06:14:52 +0000 (23:14 -0700)]
GH-101599: Update docs to remove redundant option in argparse tutorial (#124025)
Malcolm Smith [Fri, 13 Sep 2024 04:58:11 +0000 (05:58 +0100)]
gh-116622: Mock the passage of time in Android logcat rate limit tests (#124015)
Mock the passage of time in Android logcat rate limit tests
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Yngve Mardal Moe [Fri, 13 Sep 2024 04:36:17 +0000 (06:36 +0200)]
gh-123614: Add save function to turtle.py (#123617)
Malcolm Smith [Fri, 13 Sep 2024 04:23:54 +0000 (05:23 +0100)]
gh-116622: Android test script improvements (#124012)
* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
Jason R. Coombs [Fri, 13 Sep 2024 02:29:08 +0000 (22:29 -0400)]
gh-123976: Refresh docs around custom providers. (#123977)
* gh-123976: Refresh docs around custom providers.
* Remove excess whitespace.
Miro Hrončok [Fri, 13 Sep 2024 01:07:23 +0000 (03:07 +0200)]
gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (#124028)
pyrepl: Support Del, PgUp, and PgDn on TERM=vt100
From Fedora's /etc/inputrc:
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
Fixes https://github.com/python/cpython/issues/124027
Irit Katriel [Thu, 12 Sep 2024 19:24:15 +0000 (20:24 +0100)]
gh-124019: do not call codegen_annotations_in_scope if there are no annotations (#124020)
Jason R. Coombs [Thu, 12 Sep 2024 19:08:06 +0000 (15:08 -0400)]
gh-123085: Fix issue in inferred caller when resources package has no source (#123102)
gh-123085: Fix issue in inferred caller when resources package has no source.
From importlib_resources 6.4.3 (python/importlib_resources#314).
Irit Katriel [Thu, 12 Sep 2024 18:58:32 +0000 (19:58 +0100)]
gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)
Sam Gross [Thu, 12 Sep 2024 16:37:06 +0000 (12:37 -0400)]
gh-123923: Defer refcounting for `f_executable` in `_PyInterpreterFrame` (#123924)
Use a `_PyStackRef` and defer the reference to `f_executable` when
possible. This avoids some reference count contention in the common case
of executing the same code object from multiple threads concurrently in
the free-threaded build.
Mark Shannon [Thu, 12 Sep 2024 14:32:45 +0000 (15:32 +0100)]
GH-123996: Explicitly mark 'self_or_null' as an array of size 1 to ensure that it is kept in memory for calls (GH-124003)
Jason R. Coombs [Thu, 12 Sep 2024 14:14:46 +0000 (10:14 -0400)]
gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
Anders Kaseorg [Thu, 12 Sep 2024 13:54:18 +0000 (06:54 -0700)]
gh-123968: Fix lower bound for `python -m random --float` (#123971)
Nice Zombies [Thu, 12 Sep 2024 12:03:32 +0000 (14:03 +0200)]
gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936)
Hugo van Kemenade [Thu, 12 Sep 2024 10:49:19 +0000 (13:49 +0300)]
Docs: Drop letter PDF (#123912)
Irit Katriel [Thu, 12 Sep 2024 10:32:57 +0000 (11:32 +0100)]
gh-111997: update what's new in 3.13 re C API for monitoring events (#123822)
sobolevn [Thu, 12 Sep 2024 07:29:06 +0000 (10:29 +0300)]
gh-123935: Fix typo in `_get_slots` in `dataclasses.py` (#123941)
Malcolm Smith [Thu, 12 Sep 2024 05:52:07 +0000 (06:52 +0100)]
gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (#123981)
Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
Jason R. Coombs [Thu, 12 Sep 2024 02:33:07 +0000 (22:33 -0400)]
gh-121735: Fix module-adjacent references in zip files (#123037)
* gh-116608: Apply style and compatibility changes from importlib_metadata.
* gh-121735: Ensure module-adjacent resources are loadable from a zipfile.
* gh-121735: Allow all modules to be processed by the ZipReader.
* Add blurb
* Remove update-zips script, unneeded.
* Remove unnecessary references to removed static fixtures.
* Remove zipdata fixtures, unused.
sobolevn [Wed, 11 Sep 2024 18:25:23 +0000 (21:25 +0300)]
Fix "The Matrix" movie release year in `typing.rst` (#123965)
Hugo van Kemenade [Wed, 11 Sep 2024 18:05:15 +0000 (21:05 +0300)]
Update Sphinx Lint and fix unnecessary parentheses in `:func:`s (#123960)
Irit Katriel [Wed, 11 Sep 2024 17:02:28 +0000 (18:02 +0100)]
gh-123958: apply docstring removal optimization in ast_opt instead of codegen (#123959)
Bénédikt Tran [Wed, 11 Sep 2024 15:49:33 +0000 (17:49 +0200)]
gh-123290: fix reference leaks in the error-branches of `_cursesmodule.c` (#123953)
Bénédikt Tran [Wed, 11 Sep 2024 15:43:24 +0000 (17:43 +0200)]
gh-108951: Document how to terminate an asyncio.TaskGroup (#123837)
We don't want to add another API, since the recipe is straightforward and rarely needed.
The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13).
Jelle Zijlstra [Wed, 11 Sep 2024 14:49:59 +0000 (07:49 -0700)]
gh-119180: Documentation for PEP 649 and 749 (#122235)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Irit Katriel [Wed, 11 Sep 2024 14:39:53 +0000 (15:39 +0100)]
gh-123942: add missing test for docstring-handling code in ast_opt.c (#123943)
sobolevn [Wed, 11 Sep 2024 13:37:35 +0000 (16:37 +0300)]
gh-123919: Fix null handling in `_freeze_module.c` (#123920)
Xie Yanbo [Wed, 11 Sep 2024 11:44:46 +0000 (19:44 +0800)]
Fix invisible character typo (#123933)
Remove accidental addition of zero-width character (U+FEFF) reported by @jaraco:
- https://github.com/python/cpython/commit/
c3f4a6b52418d9b9f091f864cb6340d0d5fc6966 #commitcomment-
146456562
Sergey B Kirpichev [Wed, 11 Sep 2024 09:21:05 +0000 (12:21 +0300)]
gh-123811: test that round() can return signed zero (#123829)
Serhiy Storchaka [Wed, 11 Sep 2024 09:05:46 +0000 (12:05 +0300)]
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)
Now a memoryview object can only be cleared if there are no buffers
that refer it.
adang1345 [Tue, 10 Sep 2024 19:52:49 +0000 (15:52 -0400)]
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
Irit Katriel [Tue, 10 Sep 2024 16:16:00 +0000 (17:16 +0100)]
gh-123881: make compiler add the .generic_base base class without constructing AST nodes (#123883)
Tushar Sadhwani [Tue, 10 Sep 2024 15:07:30 +0000 (20:37 +0530)]
gh-122239: Add actual count in unbalanced unpacking error message when possible (#122244)
Bénédikt Tran [Tue, 10 Sep 2024 14:25:27 +0000 (16:25 +0200)]
gh-123165: update docs signature for `dis.disassemble` (#123808)
Petr Viktorin [Tue, 10 Sep 2024 14:16:32 +0000 (16:16 +0200)]
gh-123905: Update TOML description to include version number (GH-123906)
Update TOML description to include version number
There is some movement, currently blocked, that would update the TOML spec to 1.1.0; this would include breaking changes to what characters are allowed. Thus, it is worthwhile for the library page to be clear which version is implemented here.
Co-authored-by: Paul Hoffman <phoffman@proper.com>
Peter Bierma [Tue, 10 Sep 2024 13:05:28 +0000 (09:05 -0400)]
gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778)
Victor Stinner [Tue, 10 Sep 2024 09:54:17 +0000 (11:54 +0200)]
gh-123892: Add "_wmi" to sys.stdlib_module_names (#123893)
Jelle Zijlstra [Tue, 10 Sep 2024 07:26:42 +0000 (00:26 -0700)]
gh-123881: Add additional test coverage for PEP 695 edge cases (#123886)
Raymond Hettinger [Tue, 10 Sep 2024 01:57:49 +0000 (20:57 -0500)]
Small improvements to the itertools docs (GH-123885)
Anthony Sottile [Mon, 9 Sep 2024 20:40:18 +0000 (16:40 -0400)]
gh-66449: remove duplicate configparser section in 3.13 whatsnew (#123874)
Serhiy Storchaka [Mon, 9 Sep 2024 18:28:55 +0000 (21:28 +0300)]
gh-122213: Add notes for pickle serialization errors (GH-122214)
This allows to identify the source of the error.
Furkan Onder [Mon, 9 Sep 2024 17:22:28 +0000 (20:22 +0300)]
gh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827)
Irit Katriel [Mon, 9 Sep 2024 17:21:51 +0000 (18:21 +0100)]
gh-121404: split compile.c into compile.c and codegen.c (#123651)
Jérôme Duval [Mon, 9 Sep 2024 14:59:13 +0000 (16:59 +0200)]
gh-84808: socket.connect_ex: Handle negative errno (GH-122304)
POSIX allows errno to be negative.
Even though all currently supported platforms have non-negative errno,
relying on a quirk like that would make Python less portable.
Eric Snow [Mon, 9 Sep 2024 14:04:58 +0000 (08:04 -0600)]
gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (GH-122865)
In gh-121602, I applied a fix to a builtin types initialization bug.
That fix made sense in the context of some broader future changes,
but introduced a little bit of extra complexity. That fix has turned
out to be incomplete for some of the builtin types we haven't
been testing. I found that out while improving the tests.
A while back, @markshannon suggested a simpler fix that doesn't
have that problem, which I've already applied to 3.12 and 3.13.
I'm switching to that here. Given the potential long-term
benefits of the more complex (but still incomplete) approach,
I'll circle back to it in the future, particularly after I've improved
the tests so no corner cases slip through the cracks.
(This is effectively a "forward-port" of
716c677 from 3.13.)
sobolevn [Mon, 9 Sep 2024 13:58:49 +0000 (16:58 +0300)]
Mention `curl` in `contextvars` docs (#123838)
algonell [Mon, 9 Sep 2024 12:58:26 +0000 (15:58 +0300)]
Fix typos (#123775)
Furkan Onder [Mon, 9 Sep 2024 12:14:23 +0000 (15:14 +0300)]
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
Serhiy Storchaka [Mon, 9 Sep 2024 12:04:51 +0000 (15:04 +0300)]
gh-122311: Improve and unify pickle errors (GH-122771)
* Raise PicklingError instead of UnicodeEncodeError, ValueError
and AttributeError in both implementations.
* Chain the original exception to the pickle-specific one as __context__.
* Include the error message of ImportError and some AttributeError in
the PicklingError error message.
* Unify error messages between Python and C implementations.
* Refer to documented __reduce__ and __newobj__ callables instead of
internal methods (e.g. save_reduce()) or pickle opcodes (e.g. NEWOBJ).
* Include more details in error messages (what expected, what got).
* Avoid including a potentially long repr of an arbitrary object in
error messages.
Bénédikt Tran [Mon, 9 Sep 2024 11:45:43 +0000 (13:45 +0200)]
gh-123834: Add `symtable` to the list of modules with a CLI (#123835)
Bénédikt Tran [Mon, 9 Sep 2024 09:24:24 +0000 (11:24 +0200)]
chore: decimal module macro cleanup (#123791)
* protect macros expansion via `do { ... } while (0)` constructions in `_decimal.c`
* Use public macro `Py_UNUSED`
This replaces the usages of the `UNUSED` macro which
was not consistent with the `Py_UNUSED` macro itself.
In addition, this amends the parameter names so that
they match their semantic meanings.
* Remove redundant `PyCFunction` casts
Adam Turner [Mon, 9 Sep 2024 02:39:23 +0000 (22:39 -0400)]
gh-123843: Remove broken links to the Zope DateTimeWiki (#123846)
Co-authored-by: Conrad Bhuiyan-Volkoff <hi@cbv.im>
Donghee Na [Sun, 8 Sep 2024 20:20:15 +0000 (05:20 +0900)]
gh-108219: Add credits to the free-threading entry in What's New (#123802)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Sergey B Kirpichev [Sun, 8 Sep 2024 13:01:54 +0000 (16:01 +0300)]
gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
Wulian [Sun, 8 Sep 2024 04:17:59 +0000 (12:17 +0800)]
gh-123789: `secrets.randbits` returns only non-negative int (#123801)
Carol Willing [Sat, 7 Sep 2024 18:46:56 +0000 (11:46 -0700)]
Add willingc to CODEOWNERS for Lang Reference Doc (#123812)
Wei-Hsiang (Matt) Wang [Sat, 7 Sep 2024 18:09:02 +0000 (02:09 +0800)]
Remove excessive backticks in logging doc (#123813)
Seth Michael Larson [Sat, 7 Sep 2024 18:05:58 +0000 (13:05 -0500)]
gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)
Make IPv4-mapped IPv6 address properties consistent with IPv4.
Łukasz Langa [Fri, 6 Sep 2024 19:28:29 +0000 (21:28 +0200)]
gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795)
This switches the main pyrepl event loop to always be non-blocking so that it
can listen to incoming interruptions from other threads.
This also resolves invalid display of exceptions from other threads
(gh-123178).
This also fixes freezes with pasting and an active input hook.
Sam Gross [Fri, 6 Sep 2024 19:07:08 +0000 (15:07 -0400)]
gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#123690)
Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed
atomics to avoid the data race on reading `_PyOS_ReadlineTState` when
checking for re-entrant calls.
Nadeshiko Manju [Fri, 6 Sep 2024 19:00:28 +0000 (03:00 +0800)]
gh-117657: Fix file descriptor race in test_socket.py (#123697)
Nathan Goldbaum [Fri, 6 Sep 2024 17:12:12 +0000 (11:12 -0600)]
gh-109975: Add links to py-free-threading.github.io (#123776)
Co-authored-by: Victor Stinner <vstinner@python.org>
Stanislav Terliakov [Fri, 6 Sep 2024 16:41:06 +0000 (18:41 +0200)]
gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (#123544)
Victor Stinner [Fri, 6 Sep 2024 14:08:17 +0000 (16:08 +0200)]
gh-121645: Fix typo in PyBytes_Join() doc (#123783)
Victor Stinner [Fri, 6 Sep 2024 13:52:07 +0000 (15:52 +0200)]
gh-123747: Avoid static_assert() in internal header files (#123779)
aorcajo [Fri, 6 Sep 2024 13:40:29 +0000 (15:40 +0200)]
gh-119310: Fix encoding when reading old history file (#121779)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Malcolm Smith [Fri, 6 Sep 2024 13:23:55 +0000 (14:23 +0100)]
gh-123780: Make test_pkgutil clean up `spam` module (GH-123036)
Jay Aljelo Ting [Fri, 6 Sep 2024 11:50:55 +0000 (19:50 +0800)]
Fix typo in error message misspelling __slotnames__ (GH-115772)
neonene [Fri, 6 Sep 2024 11:15:23 +0000 (20:15 +0900)]
gh-123657: Fix crash and refleak in `decimal.getcontext()` (GH-123703)
Victor Stinner [Fri, 6 Sep 2024 11:15:00 +0000 (13:15 +0200)]
gh-119034, REPL: Change page up/down keys to search in history (#123607)
Change <page up> and <page down> keys of the Python REPL to history
search forward/backward.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Arnon Yaari [Fri, 6 Sep 2024 07:33:40 +0000 (10:33 +0300)]
gh-111201: fix auto-indent in pyrepl for muliple pound comments (#123196)
David Caron [Fri, 6 Sep 2024 07:29:28 +0000 (03:29 -0400)]
gh-103066: Add links and `help` in site.py constants (#103777)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Russell Keith-Magee [Fri, 6 Sep 2024 01:36:01 +0000 (09:36 +0800)]
Ensure clang++ is autodetected on iOS. (gh-123749)
Peter Bierma [Fri, 6 Sep 2024 01:15:30 +0000 (21:15 -0400)]
gh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754)
Furkan Onder [Fri, 6 Sep 2024 00:09:04 +0000 (03:09 +0300)]
gh-123718: Fix implicit declaration of 'explicit_memset' for NetBSD 10.0 (#123719)
Fix implicit declaration of 'explicit_memset' for NetBSD 10.0 in Lib_Memzero0.c.
Peter Bierma [Thu, 5 Sep 2024 23:53:47 +0000 (19:53 -0400)]
gh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276)
Furkan Onder [Thu, 5 Sep 2024 23:49:12 +0000 (02:49 +0300)]
gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (#123717)
nkinnan [Thu, 5 Sep 2024 20:59:48 +0000 (13:59 -0700)]
gh-123476: Add support for TCP_QUICKACK socket setting to Windows (#123478)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Rafael Fontenelle [Thu, 5 Sep 2024 20:04:15 +0000 (17:04 -0300)]
Swap the and from in sentence in init_config.rst (#120086)
edson duarte [Thu, 5 Sep 2024 17:56:52 +0000 (14:56 -0300)]
gh-85453: Improve instance attributes mark up on datetime.rst (#123655)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Savannah Ostrowski [Thu, 5 Sep 2024 17:56:07 +0000 (10:56 -0700)]
GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546)
sobolevn [Thu, 5 Sep 2024 15:17:24 +0000 (18:17 +0300)]
gh-123240: Raise input audit events in the new REPL (#123274)
Pieter Eendebak [Thu, 5 Sep 2024 13:52:04 +0000 (15:52 +0200)]
gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417)
Zachary Ware [Thu, 5 Sep 2024 12:29:36 +0000 (07:29 -0500)]
gh-123418: Update macOS installer to use OpenSSL 3.0.15 (#123684)
Petr Viktorin [Thu, 5 Sep 2024 12:14:05 +0000 (14:14 +0200)]
gh-123465: Allow Py_RELATIVE_OFFSET for __*offset__ members (GH-123474)
Petr Viktorin [Thu, 5 Sep 2024 09:20:07 +0000 (11:20 +0200)]
gh-97588: Move ctypes struct/union layout logic to Python (GH-123352)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>