mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
654bd2152d
commit
dc2d8404a3
5 changed files with 117 additions and 37 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue