[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2018-03-29 Thread emezh

emezh <eugene.m...@gmail.com> added the comment:

updated nosy list

--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge, theller

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33178>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2018-03-29 Thread emezh

New submission from emezh <eugene.m...@gmail.com>:

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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33178>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com