Re: [C++-sig] Object destructor not always called in embedded interpreter

2008-10-14 Thread Tanguy Fautré
> Hi Tanguy, > > I'm no python expert, but I think it works as follows: > When you import __main__, it is added to the internal list of modules > in python. It's __dict__ is therefore also referenced. So even though > you no longer reference it, the __dict__ will still be referenced by > the inter

Re: [C++-sig] Object destructor not always called in embedded interpreter

2008-10-14 Thread Thomas Berg
On Tue, Oct 14, 2008 at 3:48 PM, Tanguy Fautré <[EMAIL PROTECTED]> wrote: >> Hi Tanguy, >> >> I'm no python expert, but I think it works as follows: >> When you import __main__, it is added to the internal list of modules >> in python. It's __dict__ is therefore also referenced. So even though >> y

Re: [C++-sig] Object destructor not always called in embedded interpreter

2008-10-14 Thread Thomas Berg
On Tue, Oct 14, 2008 at 8:26 PM, Thomas Berg <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 3:48 PM, Tanguy Fautré <[EMAIL PROTECTED]> wrote: >>> Hi Tanguy, >>> >>> I'm no python expert, but I think it works as follows: >>> When you import __main__, it is added to the internal list of modules