New submission from emezh :
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
>>> BigEndianUnion
Traceback (most recent call last):
File "", line 1, in
NameError: name 'BigEndianUnion' is not defined
Is that something that can be added?
See also https://bugs.python.org/issue19023
--
components: ctypes
messages: 314647
nosy: Eugene Mezhibovsky
priority: normal
severity: normal
status: open
title: Add support for BigEndianUnion and LittleEndianUnion in ctypes
type: enhancement
versions: Python 2.7, Python 3.6
___
Python tracker
<https://bugs.python.org/issue33178>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com