[Python-checkins] bpo-44966: Fix out-of-date traceback message (GH-27867)

miss-islington webhook-mailer at python.org
Sat Aug 21 20:35:44 EDT 2021


https://github.com/python/cpython/commit/95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861
commit: 95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-21T17:35:32-07:00
summary:

bpo-44966: Fix out-of-date traceback message (GH-27867)

(cherry picked from commit 15a64d89a31b7e91f0361c305b7b27d8761db93d)

Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>

files:
M Doc/tutorial/errors.rst

diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index e7a45a302c65a7..f2490d65db5d49 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -53,7 +53,7 @@ programs, however, and result in error messages as shown here::
    >>> '2' + 2
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
-   TypeError: Can't convert 'int' object to str implicitly
+   TypeError: can only concatenate str (not "int") to str
 
 The last line of the error message indicates what happened. Exceptions come in
 different types, and the type is printed as part of the message: the types in



More information about the Python-checkins mailing list