[3.13] gh-112433 add versionadded for ctypes.Structure._align_ (GH-125087) (#125113)

(cherry picked from commit 5967dd8a4d)

Co-authored-by: monkeyman192 <monkey_man_192@yahoo.com.au>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
Jelle Zijlstra 2024-10-08 07:24:27 -07:00 committed by GitHub
parent 5df6a756a5
commit 089c6d2961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -2540,6 +2540,8 @@ fields, or any other data types containing pointer type fields.
the structure when being packed or unpacked to/from memory.
Setting this attribute to 0 is the same as not setting it at all.
.. versionadded:: 3.13
.. attribute:: _anonymous_
An optional sequence that lists the names of unnamed (anonymous) fields.

View file

@ -814,6 +814,10 @@ ctypes
See :gh:`124520` for discussion and links to changes in some affected
projects.
* :class:`ctypes.Structure` objects have a new :attr:`~ctypes.Structure._align_`
attribute which allows the alignment of the structure being packed to/from
memory to be specified explicitly.
(Contributed by Matt Sanderson in :gh:`112433`)
dbm
---