[issue13641] decoding functions in the base64 module could accept unicode strings

Guido van Rossum report at bugs.python.org
Tue Feb 21 05:18:16 CET 2012


Guido van Rossum <guido at python.org> added the comment:

Aside: I, too, at first thought this would be a bad idea because it brings back the Python 2 issue of accepting some but not all Unicode strings. But then I realized that by their nature these functions only accepts a very specific set of characters -- so the restriction to (a subset of) ASCII is intrinsic to the functionality, and there is no possibility of confusion. If anything, accepting bytes is more likely to be confusing (they could be EBCDIC! :-). So no objection here. And a slight preference for ValueError.

----------
nosy: +gvanrossum

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


More information about the Python-bugs-list mailing list