cf.Constructs.copy¶
-
Constructs.
copy
(data=True)[source]¶ Return a deep copy.
f.copy()
is equivalent tocopy.deepcopy(f)
.New in version 1.7.0.
Parameters: - data:
bool
, optional If False then do not copy data contained in the metadata constructs. By default such data are copied.
Returns: The deep copy.
Examples:
>>> g = f.copy() >>> g = f.copy(data=False)
- data: