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.

Title: struct.calcsize('L')== 8 but 4 is specified in documentation
Type: behavior Stage: resolved
Components: Versions: Python 3.6
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: JoKing, mark.dickinson
Priority: normal Keywords:

Created on 2020-05-06 20:59 by JoKing, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg368299 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2020-05-06 21:41
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.
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84718
2020-05-06 21:41:38mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg368299

resolution: not a bug
stage: resolved
2020-05-06 20:59:14JoKingcreate