Hi Chris,

Chris McDonough wrote:
> 
> Hi Marcus,
> 
> This is untested.
> 
> Turn "asd asd" into "asd_asd" and output:
> 
> <dtml-var "_.string.join(_.string.split('asd asd'), '_')">
> 
> Turn "asd_asd" into "asd asd" and output:
> 
> <dtml-var "_.string.join(_.string.split('asd_asd', '_'))">
> 
I've seen this on plenty lines of digicools code and wondered
about if this is more efficient then using just string.replace()
?
I would say string.replace() should be a bit faster.

Regards
Tino

_______________________________________________
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 )

Reply via email to