[IPython-dev] ipython on google app engine
Wed Jun 4 15:43:22 CDT 2008
On Sat, May 31, 2008 at 7:17 PM, Fernando Perez <firstname.lastname@example.org> wrote:
> On Wed, May 28, 2008 at 7:54 AM, Brian Granger <email@example.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
> 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
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...
More information about the IPython-dev