[Python-checkins] bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950)

Steve Dower webhook-mailer at python.org
Thu May 17 14:41:14 EDT 2018


https://github.com/python/cpython/commit/54fc49737a6a79f6e2ece16e22b233858b836567
commit: 54fc49737a6a79f6e2ece16e22b233858b836567
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2018-05-17T14:41:07-04:00
summary:

bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950)

(cherry picked from commit 631753fcc5e88bbbad402933e77295675cfe1fee)

Co-authored-by: Miro Hrončok <miro at hroncok.cz>

files:
M Doc/whatsnew/3.7.rst

diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 0a0c7d3659f1..30aeb3a0e49e 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`.)
 



More information about the Python-checkins mailing list