Subject: | documentation bug? |
Date: | Mon, 19 May 2008 19:01:54 +0900 |
To: | bug-MIME-Base64-URLSafe [...] rt.cpan.org |
From: | Brian Takashi Hooper <b-hooper [...] so-netm3.com> |
Hi there,
In reading the documentation to MIME::Base64::URLSafe, I noticed it says:
"Perl version of Python's URL-safe base64 codec"
However, this statement is a bit misleading since the Python version
does not drop trailing equals signs. Python documentation for 2.5
instead says:
"urlsafe_b64encode(s)
Encode string s using a URL-safe alphabet, which substitutes -
instead of + and _ instead of / in the standard Base64 alphabet."
for example:
Show quoted text
>>> import base64
>>> base64.urlsafe_b64encode
<function urlsafe_b64encode at 0xb7ef5e64>
Show quoted text>>> base64.urlsafe_b64encode('Hello World')
'SGVsbG8gV29ybGQ='
FYI.
-Brian