REPOST: Re: base64.decodestring gives binascii.error

Erik Myllymaki erik at pacific-shores.com
Fri Dec 28 17:25:39 CET 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-milwwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Erik Myllymaki <erik at pacific-shores.com>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3C2C9D79.9050501 at pacific-shores.com>
Control: cancel <3C2C9D79.9050501 at pacific-shores.com>
Date: Mon, 31 Dec 2001 02:42:09 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3C2C9D79.9050501 at pacific-shores.com>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775290 27193 211.57.49.2 (31 Dec 2001 05:08:10 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:08:10 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list