Skip to content

Commit

Permalink
bpo-30302: Update WhatsNew and documentation. (python#2929)
Browse files Browse the repository at this point in the history
* Update 'Porting to .37' section.

* Fix a minor example in the doc.
  • Loading branch information
musically-ut authored and vstinner committed Jul 28, 2017
1 parent ba9ddb7 commit 8e45318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Notes:
unusual results for negative timedeltas. For example:

>>> timedelta(hours=-5)
datetime.timedelta(-1, 68400)
datetime.timedelta(days=-1, seconds=68400)
>>> print(_)
-1 day, 19:00:00

Expand Down
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ Changes in the Python API
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
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
------------------------
Expand Down

0 comments on commit 8e45318

Please sign in to comment.