uuDecode problem

Alex Martelli aleax at mail.comcast.net
Wed Dec 7 16:50:14 CET 2005


py <codecraig at gmail.com> wrote:
   ...
>     encoded.append(binascii.b2a_uu(stringToEncode))

binascii.b2a_uu only works for up to 45 bytes at once; but if you were
feeding it more than 45 bytes, this should raise a binascii.Error
itself.

> ..any idea why this is happening?  Anyone successfully use the uu to
> encode/decode strings of varying length (even larger strings, more than
> a few hundred characters)?

Definitely not, given the above limit.  But I still don't quite
understand the exact mechanics of the error you're getting.


Alex



More information about the Python-list mailing list