[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-07-08 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-07-08 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14458 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14647 ___ Python tracker ___

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-06-07 Thread Michele Angrisano
Michele Angrisano added the comment: Hi Eric, Thank you for the report. Would you interested to propose a Pull Request for this issue? You can read the devguide for more info: https://devguide.python.org/ -- nosy: +amaury.forgeotdarc, belopolsky, mangrisano, meador.inge

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-06-07 Thread Eric Wieser
Change by Eric Wieser : -- components: +ctypes type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37187] CField.size from the ctypes module does not behave as documented on bitfields

2019-06-06 Thread Eric Wieser
New submission from Eric Wieser : This behavior is pretty surprising: ```python import ctypes class Simple(ctypes.Structure): _fields_ = [ ('a', ctypes.c_uint8), ('b', ctypes.c_uint8), ] class Bitfields(ctypes.Structure): _fields_ = [ ('a', ctypes.c_uint8,