On Sun, Nov 07, 2010 at 12:34:03PM -0500, Chris McDonough wrote:
> On Sun, 2010-11-07 at 19:17 +0200, Marius Gedminas wrote:
> > On Sun, Nov 07, 2010 at 04:11:19PM +0200, Marius Gedminas wrote:
> > > http://docs.pylonshq.com/pyramid/dev/narr/urldispatch.html#cleaning-up-after-a-request
> > > 
> > > I'm uneasy about the __del__.  If used, it would prevent people from 
> > > porting
> > > their Pyramid apps to Jython or PyPy.
> > 
> > I'm speed-reading the docs in order, and just got to
> > http://docs.pylonshq.com/pyramid/dev/narr/hooks.html#using-finished-callbacks
> > 
> > Why not recommend this method instead of __del__?
> 
> Yeah, the docs are of various strata, the __del__ example should
> probably be converted to use a finished callback.
> 
> The __del__ example, however, is still useful when you need something to
> happen when the wsgi environment disappears, rather than when the BFG
> request has ended.

Fair enough, but then it should carry a "doesn't actually *work* on
Jython" warning, as per http://docs.pylonshq.com/community/codestyle.html

(I have to say that document surprised me -- pleasantly -- due to your
dedication for user support.  Python 2.4, even!)

Marius Gedminas
-- 
Computers are not intelligent.  They only think they are.

Attachment: signature.asc
Description: Digital signature

Reply via email to