From: Raymond Hettinger Date: Sat, 21 Aug 2021 18:59:18 +0000 (-0500) Subject: bpo-44966: Fix out-of-date traceback message (GH-27867) X-Git-Tag: v3.11.0a1~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15a64d89a31b7e91f0361c305b7b27d8761db93d;p=thirdparty%2FPython%2Fcpython.git bpo-44966: Fix out-of-date traceback message (GH-27867) --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index e7a45a302c65..f2490d65db5d 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 "", line 1, in - 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