iarray.Attributes.__setitem__#

Attributes.__setitem__(name, content)#

Add or update an attr.

Its content will be packed with msgpack and unpacked when getting it.

Parameters
  • name (str or byte string) – The name of the attribute.

  • content (object) – The content of the attr. The object must be an object that can be serialized by msgpack.packb. The getitem counterpart will msgpack.unpackb it automatically.

Return type

None