code: def replace(self, year=None, month=None, day=None):
          
          if year is None:
              year = self._year
          if month is None:
              month = self._month
          if day is None:
              day = self._day
          return date.__new__(type(self), year, month, day)
docs: Return a new date with new values for the specified fields.