Florent Xicluna <[email protected]> added the comment: New patch, using str.translate instead of regexp. It is faster for normal cases (85% less time than stdlib quote), and the penalty for the real-quoting case is less than 5%.
It should apply to 3.x with some adaptation. ---------- Added file: http://bugs.python.org/file17295/issue1285086_using_translate.diff _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue1285086> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
