bpo-30302: Update WhatsNew and documentation. (#2929)
* Update 'Porting to .37' section. * Fix a minor example in the doc.
This commit is contained in:
parent
ba9ddb7eea
commit
8e45318b0d
@ -313,7 +313,7 @@ Notes:
|
|||||||
unusual results for negative timedeltas. For example:
|
unusual results for negative timedeltas. For example:
|
||||||
|
|
||||||
>>> timedelta(hours=-5)
|
>>> timedelta(hours=-5)
|
||||||
datetime.timedelta(-1, 68400)
|
datetime.timedelta(days=-1, seconds=68400)
|
||||||
>>> print(_)
|
>>> print(_)
|
||||||
-1 day, 19:00:00
|
-1 day, 19:00:00
|
||||||
|
|
||||||
|
@ -455,6 +455,9 @@ Changes in the Python API
|
|||||||
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
|
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
|
||||||
Python versions.
|
Python versions.
|
||||||
|
|
||||||
|
* ``repr`` for :class:`datetime.timedelta` has changed to include keyword arguments
|
||||||
|
in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)
|
||||||
|
|
||||||
|
|
||||||
CPython bytecode changes
|
CPython bytecode changes
|
||||||
------------------------
|
------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user