cfunits.Units.copy

Units.copy()[source]

Returns a deep copy.

Equivalent to copy.deepcopy(u).

Returns

The deep copy.

Examples

>>> u = Units('decibel')
>>> v = u.copy()
>>> v
<Units: decibel>