Skip to content

Commit c278f0a

Browse files
Include reviewer comments
Thanks Privat33r-dev for the comments!
1 parent 0a18ea5 commit c278f0a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/library/datetime.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ Instance methods:
646646

647647
.. method:: date.replace(year=self.year, month=self.month, day=self.day)
648648

649-
Return a new date with the same values, except with new values for
650-
those parameters given by whichever keyword arguments are specified.
649+
Return a new :class:`date` object with the same values, but with specified
650+
parameters updated.
651651

652652
Example::
653653

@@ -656,8 +656,8 @@ Instance methods:
656656
>>> d.replace(day=26)
657657
datetime.date(2002, 12, 26)
658658

659-
:class:`date` objects are also supported by generic function
660-
:func:`copy.replace`.
659+
The generic function :func:`copy.replace` also supports :class:`date`
660+
objects.
661661

662662

663663
.. method:: date.timetuple()
@@ -1273,10 +1273,10 @@ Instance methods:
12731273
hour=self.hour, minute=self.minute, second=self.second, microsecond=self.microsecond, \
12741274
tzinfo=self.tzinfo, *, fold=0)
12751275
1276-
Return a new datetime with the same attributes, except with new attributes
1277-
for those parameters given by whichever keyword arguments are specified.
1278-
Note that ``tzinfo=None`` can be specified to create a naive datetime from
1279-
an aware datetime with no conversion of date and time data.
1276+
Return a new :class:`datetime` object with the same attributes, but with
1277+
specified parameters updated. Note that ``tzinfo=None`` can be specified to
1278+
create a naive datetime from an aware datetime with no conversion of date
1279+
and time data.
12801280

12811281
:class:`.datetime` objects are also supported by generic function
12821282
:func:`copy.replace`.
@@ -1851,10 +1851,10 @@ Instance methods:
18511851
.. method:: time.replace(hour=self.hour, minute=self.minute, second=self.second, \
18521852
microsecond=self.microsecond, tzinfo=self.tzinfo, *, fold=0)
18531853
1854-
Return a new :class:`.time` with the same values, except with new values for
1855-
those attributes given by whichever keyword arguments are specified. Note
1856-
that ``tzinfo=None`` can be specified to create a naive :class:`.time` from
1857-
an aware :class:`.time`, without conversion of the time data.
1854+
Return a new :class:`.time` with the same values, but with specified
1855+
parameters updated. Note that ``tzinfo=None`` can be specified to create a
1856+
naive :class:`.time` from an aware :class:`.time`, without conversion of the
1857+
time data.
18581858

18591859
:class:`.time` objects are also supported by generic function
18601860
:func:`copy.replace`.

0 commit comments

Comments
 (0)