[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 4552 - in trunk/subversion: include libsvn_wc libsvn_client tests/clients/cmdline

From: <brane_at_xbc.nu>
Date: 2003-01-24 23:17:01 CET

mark benedetto king wrote:

On Fri, Jan 24, 2003 at 08:08:19AM +0100, Branko ?ibej wrote:
  

It does? My, my, I think you'll have to go through all our Python
scripts, and explicitly del() all objects that go out of scope to free
them. Why rely on garbage collection, if it makes the programming feel
crummy? :-)

    

This is obviously OT, but Java programmers are effectively forced
to explicitly close open files because the GC doesn't make any guarantees
about when it will run (in practice, it runs when you run out of memory,
which is long after you've run out of file descriptors).
  

Python doesn't have that problem -- it uses reference counting, not a
true garbage collector. So when the last reference to an object goes
away, the object is destroyed and finalizers run.

-- 
Brane Čibej   brane_at_xbc.nu   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:15:59 2006

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.