Re: 5.2 _ENV garbage collection question
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: 5.2 _ENV garbage collection question
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: 2011年6月27日 11:29:48 +0200
2011年6月27日 steve donovan <steve.j.donovan@gmail.com>:
> On Mon, Jun 27, 2011 at 11:08 AM, Gaspard Bucher <gaspard@teti.ch> wrote:
>> collectgarbage() ---- does not collect old "foo". Why ? Where is it stored ?
>> print('end') -- the garbage collection after 'end' removes old "foo".
>
> It's still there, as a global of the original environment.
But the original environment is unreachable (except by the gc_mt.__gc
function itself), and it should be collected.