mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-44966: Fix out-of-date traceback message (GH-27867)
This commit is contained in:
parent
878e726701
commit
15a64d89a3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue