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 vajrasky
Recipients ezio.melotti, miwa, vajrasky
Date 2013-09-30.15:29:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380554965.52.0.47753843067.issue19099@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the preliminary patch. I am assuming that we should accept unicode argument not reject it straight away.

Python3 does that.
>>> import struct
>>> struct.pack('b', 3)
b'\x03'
>>> struct.pack(b'b', 3)
b'\x03'
>>> struct.pack(b'\xff', 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
struct.error: bad char in struct format
History
Date User Action Args
2013-09-30 15:29:25vajraskysetrecipients: + vajrasky, ezio.melotti, miwa
2013-09-30 15:29:25vajraskysetmessageid: <1380554965.52.0.47753843067.issue19099@psf.upfronthosting.co.za>
2013-09-30 15:29:25vajraskylinkissue19099 messages
2013-09-30 15:29:25vajraskycreate