<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def dates(self, desc=None):
        '''Returns an iterable over ``datetime.date`` instances
in the timeseries.'''
        c = self.dateinverse
        for key in self.keys(desc=desc):
            yield c(key)