[issue21165] Optimize str.translate() for replacement with substrings and non-ASCII strings
STINNER Victor
report at bugs.python.org
Mon Apr 7 11:24:43 CEST 2014
STINNER Victor added the comment:
codecs.charmap_build() (PyUnicode_BuildEncodingMap()) creates a C array ("a three-level trie") for fast lookup. It is used with codecs.charmap_encode() for 8-bit encodings. We may reuse it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21165>
_______________________________________
More information about the Python-bugs-list
mailing list