Matt Bryant added the comment: I did a few more tests and am seeing the same speed differences Florent noticed. It seems reasonable to use .replace() instead, as it does the same thing significantly faster. I've attached a patch doing just this.
---------- keywords: +patch nosy: +Teh Matt Added file: http://bugs.python.org/file30325/htmlescape.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com