[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 6139 - trunk/tools/cvs2svn

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-06-06 10:53:43 CEST

On Fri, Jun 06, 2003 at 03:22:06AM +0200, Branko ??ibej wrote:
> kfogel@collab.net wrote:
> >Greg Stein <gstein@lyra.org> writes:
> >>> (main): Init trackers here, as part of the operation ctx, and
> >>> close them when done.
> >>
> >>Do they actually need to be closed? Once the refcount hits zero,
> >>they'll get closed. And is it important to actually remove them?
> >
> >Hmmm. If the usual Python idiom is to depend on the refcount to close
> >objects like this, then that's fine with me. I just have some trouble
> >getting used to it, but I'll get over it :-).

Yup, that's the usual idiom.

> Then some naive soul will run the script in Jython, which uses a real
> garbage collector instead of refcounts; *bang* instant leak.

F**k Jython. That thing introduced non-Pythonic concepts into Python, and it
quite literally pisses me off. Up until that monstrosity existed, the
refcount-based collection provided everything necessary for finalization in
a simple and clean fashion. But then Jython goes and screws it all up.

-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 6 10:50:38 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.