def get_comments_on_date(self, from_, to):
        """Gets a ``CommentList`` effective during the entire given date range inclusive but not confined to the date range.

        arg:    from (osid.calendaring.DateTime): starting date
        arg:    to (osid.calendaring.DateTime): ending date
        return: (osid.commenting.CommentList) - the returned ``Comment``
                list
        raise:  InvalidArgument - ``from`` is greater than ``to``
        raise:  NullArgument - ``from`` or ``to`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*

        """
        # Implemented from template for
        # osid.relationship.RelationshipLookupSession.get_relationships_on_date
        comment_list = []
        for comment in self.get_comments():
            if overlap(from_, to, comment.start_date, comment.end_date):
                comment_list.append(comment)
        return objects.CommentList(comment_list, runtime=self._runtime)
def get_comments_on_date ( self , from_ , to ) : comment_list = [ ] for comment in self . get_comments ( ) : if overlap ( from_ , to , comment . start_date , comment . end_date ) : comment_list . append ( comment ) return objects . CommentList ( comment_list , runtime = self . _runtime )
Gets a ``CommentList`` effective during the entire given date range inclusive but not confined to the date range.

        arg:    from (osid.calendaring.DateTime): starting date
        arg:    to (osid.calendaring.DateTime): ending date
        return: (osid.commenting.CommentList) - the returned ``Comment``
                list
        raise:  InvalidArgument - ``from`` is greater than ``to``
        raise:  NullArgument - ``from`` or ``to`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*