We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9ddb7 commit 8e45318Copy full SHA for 8e45318
Doc/library/datetime.rst
@@ -313,7 +313,7 @@ Notes:
313
unusual results for negative timedeltas. For example:
314
315
>>> timedelta(hours=-5)
316
- datetime.timedelta(-1, 68400)
+ datetime.timedelta(days=-1, seconds=68400)
317
>>> print(_)
318
-1 day, 19:00:00
319
Doc/whatsnew/3.7.rst
@@ -455,6 +455,9 @@ Changes in the Python API
455
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
456
Python versions.
457
458
+* ``repr`` for :class:`datetime.timedelta` has changed to include keyword arguments
459
+ in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)
460
+
461
462
CPython bytecode changes
463
------------------------
0 commit comments