BigEndianUnion不是python的一部分;s C类型

BigEndianUnion不是python的一部分;s C类型,python,ctypes,Python,Ctypes,Python文档说“要构建非本机字节顺序的结构,可以使用bigendianstruct、LittleEndianStructure、bigendiaunion和LittleEndianUnion基类之一” 然而: Python 3.6.1 (default, Jul 13 2017, 21:35:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux Type "help", "copyright", "credits" or "license"

Python文档说“要构建非本机字节顺序的结构,可以使用bigendianstruct、LittleEndianStructure、bigendiaunion和LittleEndianUnion基类之一”

然而:

Python 3.6.1 (default, Jul 13 2017, 21:35:51)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 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
Python 3.6.1(默认值,2017年7月13日,21:35:51)
linux上的[GCC 4.8.5 20150623(Red Hat 4.8.5-11)]
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>从ctypes导入*
>>>双端结构
>>>比根迪亚联盟
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
NameError:未定义名称“BigEndianUnion”
有人知道如何使
BigEndianUnion
可用(最好也使用python 2.7)

提前谢谢

[更新]p.s.已打开

看起来这项计划从一开始就没有真正实施过。也许您应该使用链接创建一个问题。