[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)
Serhiy Storchaka
report at bugs.python.org
Fri Apr 4 19:35:53 CEST 2014
Serhiy Storchaka added the comment:
> - drop optimizations for error handlers different than "ignore" because there is no unit tests for them, and str.translate() uses "ignore". It's safer to drop untested optimization.
It is unsafe to do such nontrivial modifications for untested code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21118>
_______________________________________
More information about the Python-bugs-list
mailing list