Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 397ad86

Browse files
committed
#4144: fix output of console sessions.
1 parent 8223c24 commit 397ad86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ programs, however, and result in error messages as shown here::
5353
>>> '2' + 2
5454
Traceback (most recent call last):
5555
File "<stdin>", line 1, in ?
56-
TypeError: coercing to Unicode: need string or buffer, int found
56+
TypeError: Can't convert 'int' object to str implicitly
5757

5858
The last line of the error message indicates what happened. Exceptions come in
5959
different types, and the type is printed as part of the message: the types in
@@ -353,7 +353,7 @@ complicated example::
353353
... print("executing finally clause")
354354
...
355355
>>> divide(2, 1)
356-
result is 2
356+
result is 2.0
357357
executing finally clause
358358
>>> divide(2, 0)
359359
division by zero!

0 commit comments

Comments
 (0)