From 54fc49737a6a79f6e2ece16e22b233858b836567 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 17 May 2018 11:41:07 -0700 Subject: [PATCH] bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 631753fcc5e88bbbad402933e77295675cfe1fee) Co-authored-by: Miro HronĨok --- Doc/whatsnew/3.7.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 0a0c7d3659f..30aeb3a0e49 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -1240,6 +1240,9 @@ Changes in the Python API :func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older Python versions. +* ``repr`` for :exc:`BaseException` has changed not to include trailing comma + in the output. Mind that most exceptions are affected by this change. + * ``repr`` for :class:`datetime.timedelta` has changed to include keyword arguments in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)