REPOST: Re: 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!netnews.com!newspeer.cwnet.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail
Message-ID: <cancel.a0hkm8$a09$1 at serv1.iunet.it>
Control: cancel <a0hkm8$a09$1 at serv1.iunet.it>
Subject: cmsg cancel <a0hkm8$a09$1 at serv1.iunet.it>
From: "Alex Martelli" <aleax at aleax.it>
Newsgroups: comp.lang.python
X-No-Archive: yes
Lines: 2
NNTP-Posting-Host: wonenara.ozemail.com.au
X-Trace: ozemail.com.au 1009643052 203.108.164.177 (Sun, 30 Dec 2001 03:24:12 EST)
NNTP-Posting-Date: Sun, 30 Dec 2001 03:24:12 EST
Organization: OzEmail Ltd, Australia
Distribution: world
Date: Sat, 29 Dec 2001 14:51:20 GMT

This message was cancelled from within Mozilla.



More information about the Python-list mailing list