From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:36:54 +0000 (-0700) Subject: bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876) X-Git-Tag: v3.9.7~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=407b3e0bb028c30fbf5efcf58c70c50eaa6712b0;p=thirdparty%2FPython%2Fcpython.git bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876) --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 516c925b72f5..4e2ed1d10a65 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