[IPython-dev] ipython on google app engine

Barry Wark barrywark@gmail....
Wed Jun 4 15:43:22 CDT 2008


On Sat, May 31, 2008 at 7:17 PM, Fernando Perez <fperez.net@gmail.com> wrote:
> On Wed, May 28, 2008 at 7:54 AM, Brian Granger <ellisonbg.net@gmail.com> wrote:
>
>> I don't think there is anyway of monitoring the user's namespace for
>> changes.  But, I can think of a couple different approaches that might
>> work:
>
>
> Actually there is, to some extent.  The execution user_ns can be a
> dict-like object whose methods fire notifications onto listeners.  One
> can't detect *all* changes (such as in-place modifications of deeply
> nested mutable objects), but at least one can detect all variable
> reads (__getitem__), new variables (__setitem__) and deletions
> (__del__).

That's exactly what I was thinking. I know it's not perfect, but as a
hint to the frontend, would be very useful.

>
> Just a side note...
>
> Cheers,
>
> f
>


More information about the IPython-dev mailing list