[IPython-dev] Getting InteractiveShell to clean up after itself

Robert Kern robert.kern@gmail....
Wed Aug 26 15:00:40 CDT 2009


On 2009-08-26 14:17 PM, Brian Granger wrote:
>
>     1. While I'm all for using more weakrefs, they are a subtle tool and I
>     doubt we can get away with using them everywhere for everything.  I
>     don't want to 'bet the farm' on that strategy, because we can easily
>     find a situation where weakrefs don't work, we have way too much
>     user-facing  state managemnet we must accomplish robustly and weakrefs
>     may not be the tool for everything we need to do.
>
>
> Yes, I agree.  When I proposed to use them "everywhere" I was actually
> thinking quite narrowly.  Here is what I am thinking:
>
> * Components will track children and parents using weakrefs.

Usually, you need strong references in one direction to keep the whole graph alive.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the IPython-dev mailing list