Lines Matching defs:copy
15 from copy import deepcopy
304 import copy, xxsubtype as spam
311 copy._deepcopy_dispatch[spam.spamlist] = spamlist
348 import copy, xxsubtype as spam
356 copy._deepcopy_dispatch[spam.spamdict] = spamdict
3796 # Testing that copy.*copy() correctly uses __setstate__...
3797 import copy
3815 b = copy.copy(a)
3818 b = copy.deepcopy(a)
4788 __neg__ = dict.copy
5301 msg = "{!r} is not a copy of {!r}".format(obj, objcopy)
5333 def copy(self, obj):
5369 state = getattr(self, '__dict__', {}).copy()
5396 y = pickle_copier.copy(x)
5400 y = pickle_copier.copy(x)
5406 y = pickle_copier.copy(x)
5412 y = pickle_copier.copy(x)
5512 objcopy = pickle_copier.copy(obj)
5516 # dictionary. We clear attributes using the previous copy to
5520 objcopy2 = pickle_copier.copy(objcopy)
5523 # Testing copying through copy.deepcopy()
5532 # dictionary. We clear attributes using the previous copy to