Return a deep copy.
f.copy() is equivalent to copy.deepcopy(f).
Examples 1: |
---|
>>> g = f.copy()
Returns: |
|
---|---|
Examples 2: |
>>> g = f.copy()
>>> g is f
False
>>> f.equals(g)
True
>>> import copy
>>> h = copy.deepcopy(f)
>>> h is f
False
>>> f.equals(g)
True