RE: [Zope] regex vs ts_regex
Apropos http://www.zope.org/Documentation/How-To/ThreadSafety Am I missing something here? There seem to be a number of places in the current 2.2.4 source where the python regex module is used - not ts_regex, thus apparently violating your advice on thread safety? For example, I was just spelunking through /lib/python/AccessControl/User.py, App/Product.py so I started greping a few subdirectories. DateTime.py uses ts_regex as does OFS/ObjectManager.py but NOT OFS/SimpleItem.py ... Is there some reason why it's ok for some modules to use regex rather than ts_regex ??? It is safe to use it in certain cases where the thread safety problems of the regex internals are not an issue. I think Jim and some others who have used regex purposefully have added a #TS comment to indicate that they have thought through the threading issues before using it. This will be moot in the future - one of the things we'll _have_ to do to move to Python2.0 is become SRE compliant. Hope this helps! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] regex vs ts_regex
Apropos http://www.zope.org/Documentation/How-To/ThreadSafety Am I missing something here? There seem to be a number of places in the current 2.2.4 source where the python regex module is used - not ts_regex, thus apparently violating your advice on thread safety? For example, I was just spelunking through /lib/python/AccessControl/User.py, App/Product.py so I started greping a few subdirectories. DateTime.py uses ts_regex as does OFS/ObjectManager.py but NOT OFS/SimpleItem.py ... Is there some reason why it's ok for some modules to use regex rather than ts_regex ??? (I'm resending this to [EMAIL PROTECTED] because it bounced from [EMAIL PROTECTED] - is something broken?) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] regex
Regex is not available in dtml. You have to use python and import it. - Original Message - From: "Joaldo Junior" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 8:09 AM Subject: [Zope] regex how to for use function regex in zope? please send examples. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )