bpo-33178: Add BigEndianUnion, LittleEndianUnion classes to ctypes (GH-25480)

* bpo-33178: Add BigEndianUnion, LittleEndianUnion classes to ctypes
* GH-25480: remove trailing whitespace in ctypes doc
* GH-25480: add news entry blurb
* GH-25480: corrected formatting error in news blurb
* GH-25480: simplified, corrected formatting in news blurb
* GH-25480: remove trailing whitespace in news blurb
* GH-25480: fixed class markup in news blurb
* GH-25480: fixed unsupported type tests and naming per review comments
* GH-25480: fixed whitepace errors
* condensed base class selection for unsupported byte order tests
* added versionadded tags for new EndianUnion classes
This commit is contained in:
Dave Goncalves 2022-03-29 14:26:27 -07:00 committed by GitHub
parent 654bd2152d
commit dc2d8404a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 117 additions and 37 deletions

View file

@ -2390,6 +2390,18 @@ Structured data types
Abstract base class for unions in native byte order.
.. class:: BigEndianUnion(*args, **kw)
Abstract base class for unions in *big endian* byte order.
.. versionadded:: 3.11
.. class:: LittleEndianUnion(*args, **kw)
Abstract base class for unions in *little endian* byte order.
.. versionadded:: 3.11
.. class:: BigEndianStructure(*args, **kw)
Abstract base class for structures in *big endian* byte order.
@ -2399,8 +2411,8 @@ Structured data types
Abstract base class for structures in *little endian* byte order.
Structures with non-native byte order cannot contain pointer type fields, or any
other data types containing pointer type fields.
Structures and unions with non-native byte order cannot contain pointer type
fields, or any other data types containing pointer type fields.
.. class:: Structure(*args, **kw)