def dates(self):
        ''' Returns a list of dates in this date interval.'''
        dates = []
        d = self.date_a
        while d < self.date_b:
            dates.append(d)
            d += datetime.timedelta(1)

        return dates
def dates ( self ) : dates = [ ] d = self . date_a while d < self . date_b : dates . append ( d ) d += datetime . timedelta ( 1 ) return dates
Returns a list of dates in this date interval.