[ python-Bugs-1709506 ] struct.calcsize() incorrect

SourceForge.net noreply at sourceforge.net
Sun Apr 29 09:21:27 CEST 2007


Bugs item #1709506, was opened at 2007-04-29 00:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1709506&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JoelBondurant (joelbondurant)
Assigned to: Nobody/Anonymous (nobody)
Summary: struct.calcsize() incorrect

Initial Comment:
The result of:

import struct
struct.calcsize('cd') #returns 16

appears to be incorrect.  The correct result should be 1 + 8 = 9.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1709506&group_id=5470


More information about the Python-bugs-list mailing list