set_attributes

nrv.backend.set_attributes(my_object, attributes_dict)[source]

Set existing attributes of an object from a dictionary.

Parameters:
  • my_object (object) – Object whose attributes should be updated.

  • attributes_dict (dict) – Mapping from attribute names to new values.

Returns:

Always returns 0.

Return type:

int