Author miwa
Recipients ezio.melotti, miwa
Date 2013-09-27.08:28:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380270487.08.0.885911184861.issue19099@psf.upfronthosting.co.za>
In-reply-to
Content
C:\>python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import struct
>>> struct.pack(u'B',1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Struct() argument 1 must be string, not unicode
>>> struct.pack(u'B',1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Struct() argument 1 must be string, not unicode
>>> struct.pack('B',1) # this is ok
'\x01'
>>> struct.pack(u'B',1)
'\x01'
History
Date User Action Args
2013-09-27 08:28:07miwasetrecipients: + miwa, ezio.melotti
2013-09-27 08:28:07miwasetmessageid: <1380270487.08.0.885911184861.issue19099@psf.upfronthosting.co.za>
2013-09-27 08:28:07miwalinkissue19099 messages
2013-09-27 08:28:06miwacreate