]> granicus.if.org Git - python/commit
copy(): Make sure the copy of a derived class cannot share the data of the
authorFred Drake <fdrake@acm.org>
Mon, 5 Nov 2001 17:40:48 +0000 (17:40 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 5 Nov 2001 17:40:48 +0000 (17:40 +0000)
commit3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd
tree48a269d52db6299822267b674e5856f6d55cddbd
parent9c2b514014da667e430b9118317876eb1f5e3367
copy():  Make sure the copy of a derived class cannot share the data of the
original by replacing self.data temporarily, then using the update() method
on the new mapping object to populate it.
This closes SF bug #476616.
Lib/UserDict.py