__parent__ - like attribute?
Dylan Reinhardt
python at dylanreinhardt.com
Sat Jan 18 23:28:44 EST 2003
At 07:48 PM 1/18/2003, Andrew Bennetts wrote:
>Why don't you simply make eggs inherit from Persistent, and let it set its
>own _p_changed flag?
A fair question. What the example obscures is that spam is, itself, a
subobject of a object that uses Persistent. Or does that not matter?
A related issue is that I also want the subobjects to obtain/acquire
settings from their containing object. Seems the same trick to do one
should do the other, but _p_changed won't do double duty here.
Dylan
More information about the Python-list
mailing list