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