py <[EMAIL PROTECTED]> wrote: ... > """data is a string""" > if len(data) > 45: > tmp = [] > for c in data: > tmp.append(binascii.b2a_uu(c))
You can't decode b2a-encoded data character by character, blindly, as you're trying to to here. Each character in the source string can be encoded into multiple characters in the target string, and the slicing, if slicing is needed, must be appropriate. I suggest a redesign...! Alex -- http://mail.python.org/mailman/listinfo/python-list