[ZPT] leaking PageTemplate Expressions

Richard Jones richard@bizarsoftware.com.au
Tue, 13 Nov 2001 11:03:24 +1100


On Tuesday 13 November 2001 10:56, alan runyan wrote:
> experiencing leaks in:
>
> Products.PageTemplate.Expressions.PathExpr
> Products.PageTemplate.ZRPythonExpr.PythonExpr

There's a known leak in TALES that will result in these objects being leaked. 
See:

    http://www.zope.org/Members/jim/ZPTIssueTracker/56/1


> are there any guidelines on what not to do to reframe from having leaks?
> how can you produce leaks in ZPT?  If these were documented and explained
> it would be quite helpful.  I am goign to try to track down my leaks.  if
> you declare a method and use it in your ZPT, will this cause a leak?  not
> calling into a method from ZPT but making a reference to a method and then
> using that refernce to call the method?

ZPT follows the same guidelines for regular Python code. I haven't got a 
reference for that though, sorry.



    Richard