[mod_python] Circular references starting from the request objectare not collected

Nick nick at dd.revealed.net
Fri Sep 10 12:50:03 EDT 2004


Nicolas Lehuen wrote:

> I wrote my cleanup code like this :
> 
> def handler(req):
> 	# do something dirty
> 	# do another dirty thing
> 	try:
> 		# do usefull work
> 	finally:
> 		# cleanup the mess

I've never had a problem doing this, but I switched to a cleanup handler 
just in case.  Grisha is right, that apache (especially 1.3) can do 
unexpected things that mod_python can't predict or handle.

Nick


More information about the Mod_python mailing list