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 codingrobot
Recipients codingrobot
Date 2010-02-25.18:22:28
SpamBayes Score 4.889882e-07
Marked as misclassified No
Message-id <1267122150.44.0.78777888297.issue8019@psf.upfronthosting.co.za>
In-reply-to
Content
the code I'm trying to execute (block is long enough):
unpack("2IB2I", block)

executing this raises an exception:
struct.error: unpack requires a bytes argument of length 20

Setting native byte-order with '@' causes the same error.
Specifying the correct byte-order either with '>' or '<', or
native with '=' helps and unpack expects the correct number (17) of bytes.
History
Date User Action Args
2010-02-25 18:22:30codingrobotsetrecipients: + codingrobot
2010-02-25 18:22:30codingrobotsetmessageid: <1267122150.44.0.78777888297.issue8019@psf.upfronthosting.co.za>
2010-02-25 18:22:28codingrobotlinkissue8019 messages
2010-02-25 18:22:28codingrobotcreate