[issue9873] Allow bytes in some APIs that use string literals internally
Antoine Pitrou
report at bugs.python.org
Thu Sep 30 00:09:31 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> The primary reason for supporting ASCII compatible bytes directly is
> specifically to avoid the encoding and decoding overhead associated
> with the translation to unicode text.
I think it's quite misguided. latin1 encoding and decoding is blindingly
fast (on the order of 1GB/s. here). Unless you have multi-megabyte URLs,
you won't notice any overhead.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9873>
_______________________________________
More information about the Python-bugs-list
mailing list