[issue4770] binascii module, crazy error messages, unexpected behavior
David M. Beazley
report at bugs.python.org
Mon Dec 29 19:54:18 CET 2008
David M. Beazley <beazley at users.sourceforge.net> added the comment:
Given the low-level nature of this module, I can understand the
motivation to make it all bytes.
However, I'm going to respectfully disagree with that and claim that
making binascii all bytes really goes against the whole spirit of what
Python 3.0 has tried to do for Unicode. For example, throughout Python,
you now have a clean separation between binary data (bytes) and text
data (str). Well, it's cleanly separated everywhere except in the
binascii module (and base64 module) which, ironically, is all about
converting between binary data and text.
As it stands now, it's a huge wart IMHO.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4770>
_______________________________________
More information about the Python-bugs-list
mailing list