But seriously, I just checked in changes that make the PyFilling
namespace tree dynamically updated whenever the main namespace
changes. I think it's pretty cool, and it's something I've wanted to
do for a long time.
Of course, it's hard to be perfect, so there are two things not quite
working to my satisfaction. The first is that an object deleted from
the main namespace is not automatically deleted from the tree if it is
the currently selected item (or the currently selected item is a child
of the deleted object). I have some thoughts on how to handle this,
but it will take more time to code it.
The second issue is similar and has to do with items that are
immutable. If the current selection is an immutable object you won't
see a change in the namespace display. While this makes sense if you
understand the mutability issue, it doesn't necessarily match user
expectations. For example, if I do something like this:
>>> i = 3
The select the "i" item in the filling tree. Then do this in the
shell:
>>> i = 35
I expect to see the new value reflected in the namespace display.
Again, I have some ideas on how to handle this but need more time to
code it.
Let me know what you think of the new feature.
···
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------