code: def name(self, name):
          
          success = idaapi.set_enum_name(self.eid, name)
          if not success:
              raise exceptions.CantRenameEnum("Cant rename enum {!r} to {!r}.".format(self.name, name))
docs: Set the enum name.