cfdm.Constructs.shallow_copy

Constructs.shallow_copy(_ignore=None)[source]

Return a shallow copy.

f.shallow_copy() is equivalent to copy.copy(f).

Any in-place changes to the actual constructs of the copy will not be seen in the original Constructs object, and vice versa, but the copy is otherwise independent of its parent.

New in version (cfdm): 1.7.0

Returns
Constructs

The shallow copy.

Examples

>>> g = f.shallow_copy()