Skip to content

Commit 8e45318

Browse files
musically-utvstinner
authored andcommitted
bpo-30302: Update WhatsNew and documentation. (#2929)
* Update 'Porting to .37' section. * Fix a minor example in the doc.
1 parent ba9ddb7 commit 8e45318

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Notes:
313313
unusual results for negative timedeltas. For example:
314314

315315
>>> timedelta(hours=-5)
316-
datetime.timedelta(-1, 68400)
316+
datetime.timedelta(days=-1, seconds=68400)
317317
>>> print(_)
318318
-1 day, 19:00:00
319319

Doc/whatsnew/3.7.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ Changes in the Python API
455455
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
456456
Python versions.
457457

458+
* ``repr`` for :class:`datetime.timedelta` has changed to include keyword arguments
459+
in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)
460+
458461

459462
CPython bytecode changes
460463
------------------------

0 commit comments

Comments
 (0)