ZODB: don't like self._p_changed

Max M maxm at mxm.dk
Thu Jan 9 10:56:38 CET 2003

Thomas Guettler wrote:
> Hi!
> I like ZODB very much. With it I don't need to
> squeeze my application into database tables.
> Unfortunately you need to set self._p_changed=1
> if you change a list of the object.
> Example:
> self.my_list.append("foo")
> self._p_changed=1 # This is needed

You could also just do::

     l = self.my_list
     self.my_list = l

> Will this disappear in the future?

Probably not. How should an object know if a mutable subobject has been 


hilsen/regards Max M

Fremtiden, videnskab, skeptiscisme og transhumanisme

More information about the Python-list mailing list