Re: Garbage collection of recursive inner function

2008-08-05 Thread from . future . import
On Aug 5, 5:23 am, Terry Reedy <[EMAIL PROTECTED]> wrote: > To understand this, it helps to realize that Python functions are not, > in themselves, recursive. Recursiveness at any time is a property of a > function in an environment, which latter can change. More specifically, > a function call

Re: Garbage collection of recursive inner function

2008-08-04 Thread Terry Reedy
[EMAIL PROTECTED] wrote: I encountered garbage collection behaviour that I didn't expect when using a recursive function inside another function: To understand this, it helps to realize that Python functions are not, in themselves, recursive. Recursiveness at any time is a property of a fu

Re: Garbage collection of recursive inner function

2008-08-04 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hi, I encountered garbage collection behaviour that I didn't expect when using a recursive function inside another function: the definition of the inner function seems to contain a circular reference, which means it is only collected by the mark-and-sweep collector, no

Garbage collection of recursive inner function

2008-08-04 Thread from . future . import
Hi, I encountered garbage collection behaviour that I didn't expect when using a recursive function inside another function: the definition of the inner function seems to contain a circular reference, which means it is only collected by the mark-and-sweep collector, not by reference counting. Here