Author Hector Cloud
Recipients Hector Cloud
Date 2015-06-10.09:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433930179.84.0.22171571246.issue24422@psf.upfronthosting.co.za>
In-reply-to
Content
I use Python 3.4.0 now. But its base64 encoding is not as expected.
----------------------------
import base64
ascii = base64.b64encode(u"YAU-interview-revised20120921".encode(), b'-_')
print(ascii)
----------------------------
The result is b'WUFVLWludGVydmlldy1yZXZpc2VkMjAxMjA5MjE='. There is a character '=' at the end which is not expected. In my opinion, the result should contain characters [A-Za-z0-9] and '-_'. The '=' should not be in the encoding result.

Is it a bug?
History
Date User Action Args
2015-06-10 09:56:19Hector Cloudsetrecipients: + Hector Cloud
2015-06-10 09:56:19Hector Cloudsetmessageid: <1433930179.84.0.22171571246.issue24422@psf.upfronthosting.co.za>
2015-06-10 09:56:19Hector Cloudlinkissue24422 messages
2015-06-10 09:56:19Hector Cloudcreate