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 mesheb82
Recipients mesheb82
Date 2012-05-24.06:21:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337840519.45.0.558860957014.issue14897@psf.upfronthosting.co.za>
In-reply-to
Content
I found some unexpected behavior while working with the struct module.
>>> import struct

This works as expected:
>>> struct.pack('1s1s','3','4')
'34'

In this case, with bad input, the error message says I need 2 arguments, when I provide 2 arguments.
>>> struct.pack('1s1s','33')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
struct.error: pack requires exactly 2 arguments
History
Date User Action Args
2012-05-24 06:21:59mesheb82setrecipients: + mesheb82
2012-05-24 06:21:59mesheb82setmessageid: <1337840519.45.0.558860957014.issue14897@psf.upfronthosting.co.za>
2012-05-24 06:21:58mesheb82linkissue14897 messages
2012-05-24 06:21:58mesheb82create