[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()
Paul Arnold added the comment: It will apply to 3.2 also, checking in SVN there have been no changes to xdrlib.py for a couple of years. The documentation makes no mention of the need to encode strings. -- ___ Python tracker <h
[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()
New submission from Paul Arnold : 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 "",