[ZODB-Dev] Undo in run-time

Guido van Rossum guido@python.org
Mon, 28 Oct 2002 14:14:12 -0500


>     JH> But what happens to the object itself?  When undo changes the
>     JH> object state, the object is updated to use the old-now-current
>     JH> state.  There's no state for the uncreated object, so what
>     JH> happens to its state?
> 
> That's a good question!  We can't get rid of the object in the run
> state of the program, but maybe we want to add another ZODB lifecycle
> state that causes some exception to be raised whenever a GB'd object's
> attributes are accessed?

Can't you just ghostify it?  That would surely raise an exception when
you try to unghostify it, right?

--Guido van Rossum (home page: http://www.python.org/~guido/)