[issue40538] struct.calcsize('L')== 8 but 4 is specified in documentation
Mark Dickinson
report at bugs.python.org
Wed May 6 17:41:38 EDT 2020
New submission from Mark Dickinson <dickinsm at gmail.com>:
Use `struct.calcsize('<L')` or `struct.calcsize('>L')` if you want the standard sizes and formats given in the documentation. The note at the top of the struct module documentation describes the difference.
See also #1709506.
----------
nosy: +mark.dickinson
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40538>
_______________________________________
More information about the Python-bugs-list
mailing list