This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Hassan El Karouni, iritkatriel, terry.reedy
Date 2022-01-23.18:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642962593.28.0.0959206441736.issue30510@roundup.psfhosted.org>
In-reply-to
Content
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'>
History
Date User Action Args
2022-01-23 18:29:53iritkatrielsetrecipients: + iritkatriel, terry.reedy, Hassan El Karouni
2022-01-23 18:29:53iritkatrielsetmessageid: <1642962593.28.0.0959206441736.issue30510@roundup.psfhosted.org>
2022-01-23 18:29:53iritkatriellinkissue30510 messages
2022-01-23 18:29:53iritkatrielcreate