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 benjamin.peterson
Recipients arnoldp, benjamin.peterson, eric.araujo, gruszczy, mark.dickinson
Date 2011-04-14.13:03:46
SpamBayes Score 0.0009399996
Marked as misclassified No
Message-id <BANLkTinvgN-hdidTkPy3=KyqErYY0FcRJg@mail.gmail.com>
In-reply-to <1302776383.32.0.643373117253.issue9544@psf.upfronthosting.co.za>
Content
2011/4/14 Filip Gruszczyński <report@bugs.python.org>:
>
> Filip Gruszczyński <gruszczy@gmail.com> added the comment:
>
> Actually documentation doesn't say that it supports only bytes, but:
>
> "The following methods support packing strings, bytes, and opaque data:"
>
> Also under python2 you can easily do this:
>
> In [1]: import xdrlib
>
> In [2]: p = xdrlib.Packer()
>
> In [3]: p.pack_string('some str')
>
> In [4]: p.pack_string(u'some str')

I doubt u"美", will, though.
History
Date User Action Args
2011-04-14 13:03:48benjamin.petersonsetrecipients: + benjamin.peterson, mark.dickinson, eric.araujo, gruszczy, arnoldp
2011-04-14 13:03:46benjamin.petersonlinkissue9544 messages
2011-04-14 13:03:46benjamin.petersoncreate