[Python-checkins] bpo-30302: Update WhatsNew and documentation. (#2929)

Victor Stinner webhook-mailer at python.org
Fri Jul 28 08:42:59 EDT 2017


https://github.com/python/cpython/commit/8e45318b0d8df9340ac41b1d0447ffc83c7f5102
commit: 8e45318b0d8df9340ac41b1d0447ffc83c7f5102
branch: master
author: Utkarsh Upadhyay <mail at musicallyut.in>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-07-28T14:42:56+02:00
summary:

bpo-30302: Update WhatsNew and documentation. (#2929)

* Update 'Porting to .37' section.

* Fix a minor example in the doc.

files:
M Doc/library/datetime.rst
M Doc/whatsnew/3.7.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 625e1590a87..3880c2eb0b7 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -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
 
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 023d0a1b238..21e9c568ae4 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -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
 ------------------------



More information about the Python-checkins mailing list