From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 17 May 2018 18:41:07 +0000 (-0700) Subject: bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950) X-Git-Tag: v3.7.0b5~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54fc49737a6a79f6e2ece16e22b233858b836567;p=python bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950) (cherry picked from commit 631753fcc5e88bbbad402933e77295675cfe1fee) Co-authored-by: Miro HronĨok --- diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 0a0c7d3659..30aeb3a0e4 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`.)