[issue9996] binascii should convert unicode strings

Antoine Pitrou report at bugs.python.org
Thu Sep 30 17:12:44 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Regardless of the various arguments, I think it is too late to break compatibility again, by disallowing bytes input, or changing the output type.
What we could do is allow str arguments to a2b_ functions, with the restriction that the argument must not contain non-ASCII characters.

(Please note that the "a" is for ASCII; otherwise it would be "u" for Unicode :-))

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9996>
_______________________________________


More information about the Python-bugs-list mailing list