On Tue, Jun 07, 2005 at 08:23:18PM -0700, Pavel Pergamenshchik wrote: > Hi. > Is this a feature? I do see b32encode padding the string with NULs first. > > >>> b32decode(b32encode('\x00')) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/base64.py", line 228, in b32decode > last = binascii.unhexlify(hex(acc)[2:-1]) > TypeError: Odd-length string This also seems suspect: >>> base64.b32encode("\0a") 'ABQQ====' >>> base64.b32decode(_) 'a' Jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20050610/36128810/attachment.pgp
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4