def today ( year = None ) : return datetime . date ( int ( year ) , _date . month , _date . day ) if year else _date
python datetime with only year and month
this day last year
def today(year=None):
    """this day, last year"""
    return datetime.date(int(year), _date.month, _date.day) if year else _date