def set_range(self, start=None, end=None, occurrences=None):
if start is None:<EOL><INDENT>if self.__start_date is None:<EOL><INDENT>self.__start_date = dt.date.today()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.start_date = start<EOL><DEDENT>if end:<EOL><INDENT>self.end_date = end<EOL><DEDENT>elif occurrences:<EOL><INDENT>self.__occurrences = occurrences<EOL><DEDENT>self._track_changes()<EOL>
Set the range of recurrence

        :param date start: Start date of repetition
        :param date end: End date of repetition
        :param int occurrences: no of occurrences