base64.decodestring gives binascii.error

Alex Martelli aleax at aleax.it
Fri Dec 28 06:22:49 EST 2001


"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






More information about the Python-list mailing list