[ZODB-Dev] PersistentMapping copy
Jeremy Hylton
jeremy@zope.com
Wed, 16 Jan 2002 01:07:17 -0500
>>>>> "JR" == Joshua Reynolds <joshuar@isogen.com> writes:
JR> Is there any compelling reason not to have a copy method on
JR> PersistentMapping? I am trying to update to the latest ZODB and
JR> i see that it is gone. I was thinking something along the lines
JR> of
JR> def __copy__(self):
JR> return PersistentMapping(self.data.copy())
What version of ZODB are you refering to? The code on the Zope trunk
now extends UserDict. UserDict defines a copy() method.
Jeremy