cf.Constructs.shallow_copy¶
-
Constructs.shallow_copy(_ignore=None)[source]¶ Return a shallow copy.
f.shallow_copy()is equivalent tocopy.copy(f).Any in-place changes to the actual constructs of the copy will not be seen in the original
Constructsobject, and vice versa, but the copy is otherwise independent of its parent.New in version (cfdm): 1.7.0
- Returns
ConstructsThe shallow copy.
Examples
>>> g = f.shallow_copy()