Author arnoldp
Recipients arnoldp
Date 2010-08-09.05:51:23
SpamBayes Score 1.62366e-10
Marked as misclassified No
Message-id <1281333086.43.0.820305754452.issue9544@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3.1, xdrlib.Packer().pack_fstring() throws a TypeError if called with a str() (an encoded string bytes() works just fine).

>>> xdrlib.Packer().pack_fstring(6, "foobar")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.1/xdrlib.py", line 81, in pack_fstring
    data = data + (n - len(data)) * b'\0'
TypeError: Can't convert 'bytes' object to str implicitly
History
Date User Action Args
2010-08-09 05:51:26arnoldpsetrecipients: + arnoldp
2010-08-09 05:51:26arnoldpsetmessageid: <1281333086.43.0.820305754452.issue9544@psf.upfronthosting.co.za>
2010-08-09 05:51:24arnoldplinkissue9544 messages
2010-08-09 05:51:23arnoldpcreate