STINNER Victor <victor.stin...@haypocalc.com> added the comment: Accept unicode string is not "pure", but I agree that it's convinient. Here is a patch: * base64.b(16|32|64)encode and b64.encodebytes accept unicode string * unicode is first encoded to utf-8 to get a byte string * Update the docstrings and the documentation * Fix tests
---------- Added file: http://bugs.python.org/file17463/base64_str.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4769> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com