This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author emezh
Recipients emezh
Date 2018-03-29.13:48:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522331303.68.0.467229070634.issue33178@psf.upfronthosting.co.za>
In-reply-to
Content
Python documentation says that "To build structures with non-native byte order, you can use one of the BigEndianStructure, LittleEndianStructure, BigEndianUnion, and LittleEndianUnion base classes"

However, BigEndianUnion ad LittleEndianUnion are not implemented

>>> from ctypes import *
>>> BigEndianStructure
<class 'ctypes._endian.BigEndianStructure'>
>>> BigEndianUnion
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'BigEndianUnion' is not defined

Is that something that can be added?

See also https://bugs.python.org/issue19023
History
Date User Action Args
2018-03-29 13:48:23emezhsetrecipients: + emezh
2018-03-29 13:48:23emezhsetmessageid: <1522331303.68.0.467229070634.issue33178@psf.upfronthosting.co.za>
2018-03-29 13:48:23emezhlinkissue33178 messages
2018-03-29 13:48:23emezhcreate