[Zope-Checkins] CVS: Zope3/lib/python/Persistence - Module.py:1.9
Jeremy Hylton
jeremy@zope.com
Thu, 11 Jul 2002 19:37:47 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv25610
Modified Files:
Module.py
Log Message:
I think this comment is helpful :-)
=== Zope3/lib/python/Persistence/Module.py 1.8 => 1.9 ===
def __getstate__(self):
d = self.__dict__.copy()
del d["__builtins__"]
+ # XXX must guarantee nothing reachable from d has
+ # a reference to d, unless there is a Persistent object
+ # between the two references.
return d
def __setstate__(self, state):