cf.List.copy¶
- List.copy(data=True)[source]¶
- Return a deep copy. - f.copy()is equivalent to- copy.deepcopy(f).- Arrays within - Datainstances are copied with a copy-on-write technique. This means that a copy takes up very little extra memory, even when the original contains very large data arrays, and the copy operation is fast.- Added in version (cfdm): 1.7.0 - Parameters:
- data: bool, optional
- If True (the default) then copy data, else the data is not copied. 
 
- data: 
- Returns:
- List
- The deep copy. 
 
 - Examples - >>> g = f.copy() >>> g = f.copy(data=False) >>> g.has_data() False 
 
 
 
