[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

STINNER Victor report at bugs.python.org
Tue Oct 5 09:32:05 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> If you were worried about performance, then surrogateescape is certainly
> much slower than latin1.

If you were really worried about performance, the bytes type is maybe faster 
than: decode bytes to str using latin-1, process str strings, encode str to 
bytes using latin-1.

----------

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


More information about the Python-bugs-list mailing list