base64.decodestring gives binascii.error
Erik Myllymaki
erik at pacific-shores.com
Fri Dec 28 11:25:39 EST 2001
The '_' and '!' were in the original string that was then encoded, not
in the resulting encoded string.
Alex Martelli wrote:
> "Erik Myllymaki" <erik at pacific-shores.com> wrote in message
> news:3C2C03CB.7030000 at pacific-shores.com...
>
>>should base64.decodestring give a binascii.error if it encounters
>>special chars like '_' and '!' ?
>>
>
> Makes sense to me; after all, such characters should never be
> in a string produced by base64, so the data must have been
> damaged in transit -- raising an exceptions seems appropriate.
>
>
> Alex
>
>
>
>
--
--
Erik Myllymaki
erik at pacific-shores.com
More information about the Python-list
mailing list