copyattrs#

caput.memdata.copyattrs(a1, a2, convert_strings=False)[source]#

Copy attributes from one attribute-like object to another.

Parameters:
a1AttributesLike

Attributes to copy from.

a2AttributesLike

Attributes to copy into.

convert_stringsbool, optional

Convert string attributes (or lists/arrays of them) to ensure that they are unicode. Default is False.