Irit Katriel <iritkatr...@gmail.com> added the comment:

Reproduced on 3.11:

>>> from ctypes import *
>>> class r( BigEndianStructure ):
...     _fields_ = [( "d0", c_uint32),
...                 ( "d1", c_bool )
...                      ]
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/iritkatriel/src/cpython-654/Lib/ctypes/_endian.py", line 31, in 
__setattr__
    fields.append((name, _other_endian(typ)) + rest)
                         ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-654/Lib/ctypes/_endian.py", line 21, in 
_other_endian
    raise TypeError("This type does not support other endian: %s" % typ)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: This type does not support other endian: <class 'ctypes.c_bool'>

----------
nosy: +iritkatriel
versions: +Python 3.11 -Python 2.7

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

Reply via email to