Message314647
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 |
|
Date |
User |
Action |
Args |
2018-03-29 13:48:23 | emezh | set | recipients:
+ emezh |
2018-03-29 13:48:23 | emezh | set | messageid: <1522331303.68.0.467229070634.issue33178@psf.upfronthosting.co.za> |
2018-03-29 13:48:23 | emezh | link | issue33178 messages |
2018-03-29 13:48:23 | emezh | create | |
|