James Y Knight <f...@users.sourceforge.net> added the comment:

Right you are, it seems that python's regexp implementation is terribly slow 
when doing replacements with a substitution in them. (fixing the broken test, 
as you pointed out changed the timing to 97.6 usec vs the in-error-reported 
18.3usec.)

Oh well. I still think it's crazy not to use re for this in its own module. 
Someone just needs to fix re to not be horrifically slow, too. :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to