mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
bpo-44966: Fix out-of-date traceback message (GH-27867)
This commit is contained in:
parent
878e726701
commit
15a64d89a3
|
@ -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…
Reference in a new issue