cfdm.core.Constructs.shallow_copy

Constructs.shallow_copy(_ignore=None)[source]

Return a shallow copy.

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

New in version (cfdm): 1.7.0

Returns

The shallow copy.

Examples:

>>> g = f.shallow_copy()