[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz] Oct 14th (vegai)
From: |
Tuukka Hastrup |
Subject: |
Re: [Gzz] Oct 14th (vegai) |
Date: |
Mon, 14 Oct 2002 20:38:22 +0300 (EEST) |
On Mon, 14 Oct 2002, Tuomas Lukka wrote:
> Not really, this is well documented: while CPython does reference counting,
> Jython uses Java's garbage collection.
>
> I actually think that python's language definition does not specify
> when a will be deleted so the fact that it works in C is just luck.
Yep, Python Language Reference says: "Some objects contain references to
``external'' resources such as open files or windows. It is understood
that these resources are freed when the object is garbage-collected, but
since garbage collection is not guaranteed to happen, such objects also
provide an explicit way to release the external resource, usually a
close() method. Programs are strongly recommended to explicitly close such
objects."
--
-- Trying to catch me? Just follow up my Electric Fingerprints
-- To help you: address@hidden
http://www.iki.fi/Tuukka.Hastrup/
IRCNet: Stugge/tuukkah @#pii,#gzz,#ynna
Jabber ID: address@hidden, ICQ #11321669