[mod_python] Circular references starting from therequest objectare not collected

Nicolas Lehuen nicolas at lehuen.com
Fri Sep 10 21:39:44 EDT 2004


OK, thanks for the advice. 

> -----Message d'origine-----
> De : mod_python-bounces at modpython.org 
> [mailto:mod_python-bounces at modpython.org] De la part de Nick
> Envoyé : vendredi 10 septembre 2004 18:50
> À : mod_python user mailing list
> Objet : Re: [mod_python] Circular references starting from 
> therequest objectare not collected
> 
> 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
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list