Florent Xicluna <florent.xicl...@gmail.com> 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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1285086>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to