[Zope] Re: [Zope-dev] ts_regex.py broken in Z2.0 final? was [Zope] Announce: Confera 1.3.1

Jim Fulton jim@digicool.com
Fri, 03 Sep 1999 08:47:05 -0400


"Andrew M. Kuchling" wrote:
> 
> Andreas Kostyrka writes:
> >Actually, the fix I've did, I understand, I've switched from the old
> >regsub to the threadsafe regex module. Now this, I don't understand, it
> >seems like the ts_regex.py is broken for gsub.
> 
> It is broken.

No, it is not broken. The usage is incorrect.
You need to use a regex regular expression with a ts_regex.gsub.

> ts_regex is a hack,

Hm. We disagree.

> and Squishdot should be using the re
> module instead.  I posted a patch to the Squishdot list that made it
> use re; check the archive at www.egroups.com/group/squishdot/ and look
> for my posting.

I have no problem with switching to re.  This is definately the
right long-term solution.

What is the current status of speed of re as compared to regex?

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.